I need to plot a graph in PyQt5 with PyQtgraph with custom plot like this in QtChart:
enter image description here
Linkt to the cutom QtChart example: https://doc.qt.io/qt-5/qtcharts-customchart-example.html#running-the-example
I think in QtChart/C++ is pretty clear how to do it in the link above. But I haven't found anything in the documentation to do this in pyqtgraph.
Could anyone give me a hint in a documentation or simple example, please? Or maybe can't do this in pyqtgraph.
Thanks a lot.
Related
As mentioned in the question, is there anyway we can change color of bar and waterfall plot in shap plot? I didn't see any option to change it. I tried using matplotlib to change the color but that didn't solve the issue. I can add the title but can't change the color. Any help would be great.
plt.title("This is my title")
plt.gray()
shap.plots.bar(shap_values,show = False)
shap.plots.waterfall(shap_values[-1])
plt.show()
Thanks,
Sam
I had a similar issue. I wanted to swap the blue color with the red one in the shap waterfall plot.
My approach was modifying the file _waterfall.py in the shap lib, replacing the lines with c = colors.red_rgb with c = colors.blue_rgb and vice-versa.
Surely not an elegant solution but I just needed to generate 6 plots this way.
I was able to visualize my data in a boxplot using Seaborn.
sns.boxplot( x=df['Score'].astype('float'), y=df['Group'] )
The visualization shows me: all four quartiles, lower and upper whisker, and some outliers. How can I also add the Mean line into the boxplots? See current visualization (without mean).
Thanks!
I just figured it out. The code works like this:
sns.boxplot(x=df['Score'].astype('float'), y=df['Group'],showmeans=True )
I have a pyqtgraph imageitem with an associated histogram. I can change the colour of the image by selecting it from the histogram. What I want to do is save the name/number/something of this process so that I can later create the image and automatically load this colourmap using just this information.
How do I do this?
I can see the values of the colourmap in LUT but saving 512 x 3 values is a bit too much for me. I would really appreciate a better solution.
I found an alternative way to do this. When I click on the colourmap I record the selection in the program and can then use this whenever I want.
Hello fellow Stackoverflowers:
I am curious if it is possible to create a style or control the aestetic of the graphs and diagrams to look like they are from a turn-de-siclé book (talking about the 19th-20th centuries), that is, imitate the look of an etched graph. I have a simple diagram that I produced on inkscape that is a very very crude aproximation to what I am looking.
Could I produce something more "metal/wood engraving" on gnuplot? I have gnuplot 5.0.5. Thank for your attention, I hope this is the right forum.
Use gnuplot command test to see what fill patterns available.
Modifying or adding custom fill pattern is extremely difficult in gnuplot, as far as I know. See this example for how to manipulate the fill pattern: Gnuplot: how to fill a bar with both a color background and a pattern
anybody able to tell me how to add labels to gnuplot rowstacked histogram? I want to add a label to one specific read column.
Data looks like this:
Date, Online_Percent, Offline_percent, Maintance_percent
01.01.2013, 96.000, 2.000, 2,000
i would like to add another column with "offline_time" and label the bar with it (on top or right into the bar, i don't care about that)
Hope anybody can help me.
Thanks
Thanks for trying to help me, but found a solution on an asian site.
Solution :
'' using 0:($2+50):3 with labels notitle
#Explanation:
0=x-index
($2+50)=y-index
3=Value from data to be used as label....
You are also able to apply the style settings like this:
'' using 0:(\$2-10):2 with labels notitle "'font "1" rotate by -90'
Hope it will help others having this question.