is it possible to display figures on a graph with matplotlib? - python-3.x

Is there a function in Matplotlib to display black rectangles on a graphic ?, like this :

You might want to look into Matplotlib's Patches and subsequent Rectangle modulus. Here's an example showcasing box creations with some error bars.

Related

How to draw a coordinate map containing both horizontal and vertical boxplot with matplotlib

I want to draw a picture like this using matplotlib.
How to do that?
Thank you in advance.
Example/i.stack.imgur.com/Vk57A.png
seaborn.jointplot might be what you're looking for. Specify to draw boxplots in the marginal plot and a regplot in the "main plot".
Seaborn builds on top of matplotlib, so you can still modify linecolors, markercolors etc. and draw annotations with plt.annotate.

Tkinter enlarging graphs drawn on canvas without changing the canvas size

I am currently creating a GUI which plots data points from a textfile. I would like to enlarge the graph. Would like to ask if it is possible because everything I tried seems to yield no result. Below I attached the image of the graphs which I wish to enlarge. Thanks.

Octave + Gnuplot rendering image upside down

I am displaying data using function imagesc(). If I set fltk as graphics_toolkit image is displayed correctly.
Can't post images directly(low reputation) http://i.stack.imgur.com/ARiwF.png
If I use gnuplot as plotting program image is rendered upside down.
fltk is unusable for me because its window isn't responding while function in octave is running. I also tried plot sine and it was correct plotted through fltk and gnuplot too.
There are at least two workarounds:
Use axis("xy") or axis("ij") to control the orientation of the y-axis, as decribed in the axis documentation
Use set(gca, "ydir", "normal") or set(gca, "ydir", "reverse"), as decribed in the axes properties doc

gmtset BASEMAP_FRAME_RGB transparency

I want to not have my basemap axes visible for an image I'm making in GMT with several plots in it. So far I have made them white using:
gmtset BASEMAP_FRAME_RGB = white
However some of the plots partially overlap and the white axes can be seen over the plots - any ideas on how to fix this? By making the basemap frame transparent ideally.
In fact I've realised I can change the order I do the plots in so that the overlap doesn't matter - also replaced -B... with -G255 to plot on a blank square.

Alternative to flot where the axes labels are within the canvas

I have been using the fantastic canvas plotting library flot. The selection of graph types is excellent but I want to be able to export the whole graph to an image, including axes numbers, ticks and labels and a the graph title.
Unfortunately only the graph itself seems to be drawn in the canvas, the axes numbers and ticks are in divs. Therefore the canvas toDataURL method does not capture everything.
Can anyone recommend a library with similar functionality which either:
Draws everything within the canvas, or
Has a reliable export to image method
In particular I would like a library which supports the percentiles plot.
Flot 0.8 supports drawing axis labels to canvas using the canvas plugin. I don't know about the chart title - that depends on what plugin or code you're using to do that - but it would be relatively easy to add a draw hook to render that text to canvas.
The only thing Flot can't currently draw to canvas is the legend; that will be added in the next release.

Resources