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 S
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 a
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
sel
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
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')
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 fro
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
Jouni K. Seppänen wrote:
>
>
> It would help to give a complete example. ColorbarBase itself does not
> create a colorbar but is useful for drawing a colorbar in existing axes.
>
>
Well, let's take the one you've proposed the last time. How than can i put a
colorbar beside the plot?
#!/usr/
sidimok <[EMAIL PROTECTED]> writes:
> It works just fine, however the colorbar I'm getting with the following
> commands is very tiny.
>
> norm = matplotlib.colors.Normalize(vmin=x[0], vmax=x[-1]) # just an example
> cb = matplotlib.colorbar.ColorbarBase(ax, cmap=matplotlib.cm.jet, norm=norm)
It
Jouni K. Seppänen wrote:
>
> sidimok <[EMAIL PROTECTED]> writes:
>
>> I'm using matplotlib to draw (from matplotlib.Patches import Circle)
>> filled
>> circles (disks) from a formatted data file, and would give each disk a
>> color relative to a variable, as done by the "scatter" function.
>
10 matches
Mail list logo