How can I remove the top and right axis in matplotlib?
Instead of the default “boxed” axis style I want to have only the left and bottom axis, i.e.: +——+ | | | | … Read more
Instead of the default “boxed” axis style I want to have only the left and bottom axis, i.e.: +——+ | | | | … Read more
I have an existing plot that was created with pandas like this: df[‘myvar’].plot(kind=’bar’) The y axis is format as float and I want … Read more
I have the following code: import matplotlib.pyplot as plt cdict = { ‘red’ : ( (0.0, 0.25, .25), (0.02, .59, .59), (1., 1., … Read more
I want to plot data, then create a new figure and plot data2, and finally come back to the original plot and plot … Read more
This question already has answers here: Generating a PNG with matplotlib when DISPLAY is undefined (13 answers) Closed 8 years ago. Matplotlib seems … Read more
The following code plots to two PostScript (.ps) files, but the second one contains both lines. import matplotlib import matplotlib.pyplot as plt import … Read more
I’m having issues with redrawing the figure here. I allow the user to specify the units in the time scale (x-axis) and then … Read more
Help required on matplotlib. Yes, I did not forget calling the pyplot.show(). $ ipython –pylab import matplotlib.pyplot as p p.plot(range(20), range(20)) It returns … Read more
I wish to draw lines on a square graph. The scales of x-axis and y-axis should be the same. e.g. x ranges from … Read more
This question already has answers here: Which is the recommended way to plot: matplotlib or pylab? (2 answers) Closed last year. What is … Read more