sidimok [EMAIL PROTECTED] writes:
Well, let's take the one you've proposed the last time. How than can i put a
colorbar beside the plot?
Add in the imports
from matplotlib.colorbar import ColorbarBase, make_axes
and change the myscatter function to
def myscatter(ax, colormap, x, y, radii,
How about this solution? I'm a complete newbe, but this seems to do the trick.
I didn't see a CircleCollection so I used CirclePolygon to generate vertices
for a circle; these I grab and toss into a PolyCollection. Enjoy, Dave
import matplotlib
from matplotlib.patches import CirclePolygon
Hi Jouni,
Jouni K. Seppänen schrieb am 09/16/2007 05:51 PM:
Fabian Braennstroem [EMAIL PROTECTED] writes:
Lets say I have to columns, the I could use in a script:
res=plot(array_mapped[:,0],array_mapped[:,1], 'b',
array_mapped[:,0],array_mapped[:,2], 'g')
The next
With the setup you provided. I could get py2exe to make an exe of the
simple_plot.py from simple_plot_wxagg of py2exe examples.
When I tried this on another python prog, I remarked that if I comment the
following line :
import matplotlib.backends.backend_wxagg
the exe created by py2exe crash and
I'm embedding a FigureCanvasWxAgg into a wx.Panel and binding key events to
it:
class MyPanel(wx.Panel)
def __init__(self, parent, file, id=-1):
wx.Panel.__init__(self, parent,
style=wx.WANTS_CHARS | wx.NO_FULL_REPAINT_ON_RESIZE)
#Set up the canvas
Hi,
I am trying to use the simple test.py program to draw a stacked bar graph.
My intention is eventually to shrink this into a sparkline.
Both the sample program and the image output are attached.
What I cannot understand is why the vertical bars don't align to the
y-axis 0 point.
Any help is
Hi, all,
I have a long ylabel that is displayed in two lines. Thus, the ylabel
overlaps with yticklabels. Does anyone know how to control the space between
ylabel and yticklabel? Thank you very much.
Best,
cj
-
This