Hi Walid, I'm new to mpl, too, but I just installed it on OSX and
first had that problem, too. I solved it because I did not have libpng/
libjpeg installed, for which a pkg installer for OSX is available here:
http://ethan.tira-thompson.org/Mac_OS_X_Ports.html
Hope this solves your problem, t
My lables for the different bars are not centered below the bar but are
all to the left side of the bars (lower left corner).
This is what I am basically doing:
axes = panel.figure.add_subplot(2, 2, 3)
...
axes.bar(indx, values, color=colors)
axes.set_xticklabels(lab
the patch3dcollection object not good for legend figure, I am having trouble
thinking of a work
around. Is there manually a way to insert artist and labels into the legend
and make it such that it is independent from the axes? Using a proxy artist
requires it not be part of the axes correct?
--
V
Werner F. Bruhin wrote:
...
> Ideally I would like to have these labels printed at an angle.
Put my glasses on and found the rotation property in the documentation,
only issue left is centering the labels below the bars.
Werner
--
OK, I mostly understand John's example and have
adapted it in the attached Histogram class, for
whoever might care. (The file is a working
example.) Thanks!
Here are my remaining questions.
1. To get a new histogram, I just change the
data in the vertices object and then ask my
FigureCanvasTkAg
Ooops, forgot the attachment.
Alan
"""
Adapts John Hunter's example of how to use a path patch to draw a bunch of
rectangles for an animated histogram
"""
import Tkinter as tk
import numpy as np
import matplotlib as mpl
mpl.use('TkAgg')
from matplotlib.backends.backend_tkagg import FigureCanvasT
On Tue, Aug 18, 2009 at 12:53 PM, Alan G Isaac wrote:
> OK, I mostly understand John's example and have
> adapted it in the attached Histogram class, for
> whoever might care. (The file is a working
> example.) Thanks!
>
> Here are my remaining questions.
>
> 1. To get a new histogram, I just chan
I have asked this question before. How do I set the linewidth of the
axis frame? Long ago, I used gca().get_frame().set_linewidth(2). More
recently, I used gca().frame.set_linewidth(2), but this doesn't seem to
work anymore. I've tried gca().patch, to no avail. Any suggestions?
Thanks.
---
On Tue, Aug 18, 2009 at 1:53 PM, Alan G Isaac wrote:
> 2. This is pretty fast. Would there be additional
> speed gains to blitting, and if so, how would it
> be done? (I'm just asking for clues, not a complete
> example.)
Blitting will improve the performance when significant portion of your
plo
I guess you're using 0.99?
Use spines instead.
for example,
gca().spines["bottom"].set_linewidth(2) # it only changes the
linewidth of the bottom spine.
also, see this example,
http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html#pylab-examples-spine-placement-dem
Hello,
I have a list of X,Y coordinates and a ratio associated with each
coordinate. The X and Y coordinates are continuous but random from 50-500, I
would like to make a continuous heatmap of the ratios at each coordinate.
One caveat is that the coordinates are clustered together do some bixes
mi
On Tue, Aug 18, 2009 at 1:33 PM, dek wrote:
>
> the patch3dcollection object not good for legend figure, I am having trouble
> thinking of a work
> around. Is there manually a way to insert artist and labels into the legend
> and make it such that it is independent from the axes? Using a proxy arti
Can anyone explain how I could:
-Open two shapefiles
-Open a raster
-Plot a histogram of the values within each shapefile on the same plot and
display the mean and Standard Deviation of each plot.
Thanks
--
Let Crystal
You need to adjust the positions of the ticks.
bar command (by default) creates boxes so that their left side
corresponds the first argument.
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.bar
so, in your case, something like below will work (0.4 from 0.8/2 where
0.8 is t
Werner F. Bruhin wrote:
> Werner F. Bruhin wrote:
> ...
>> Ideally I would like to have these labels printed at an angle.
> Put my glasses on and found the rotation property in the documentation,
> only issue left is centering the labels below the bars.
Are you using the align='center' kwarg to b
sct1 = axes.scatter(x,y, c=some_list, cmap=plt.get_cmap(colmap))
colors = sct1.get_facecolors()
The return value is an array of rgb values.
-JJ
On Mon, Aug 17, 2009 at 3:40 PM, Carlos
Grohmann wrote:
> Hi, I have a collection, which is a scatter plot, and I want to
> iterate through all the ele
See below for available public methods.
http://matplotlib.sourceforge.net/api/collections_api.html#matplotlib.collections.Collection
-JJ
On Tue, Aug 18, 2009 at 6:16 PM, Jae-Joon Lee wrote:
> sct1 = axes.scatter(x,y, c=some_list, cmap=plt.get_cmap(colmap))
> colors = sct1.get_facecolors()
>
>
On Mon, Aug 17, 2009 at 10:29 AM, Ole Streicher wrote:
> Hi,
>
> I want to show the same data on multiple plots. Is it possible to re-use
> the Line2D object for that? t.m.,
>
> line = axes1.plot(xdata, ydata, ...)
>
> ...
>
> axes2.lines.append(line)
>
> Or is a Line2D bound to a certain axes inst
> 2009/8/18 Pete Shepard :
> I have a list of X,Y coordinates and a ratio associated with each
> coordinate. The X and Y coordinates are continuous but random from 50-500, I
> would like to make a continuous heatmap of the ratios at each coordinate.
> One caveat is that the coordinates are clustere
19 matches
Mail list logo