John,
Attached is a script illustrating how to make contourf plots with a log
colorscale. I made some improvements in svn, as noted in the script,
but you can still do it with the regular mpl release. All of this
should carry through to basemap with no changes in basemap.
Eric
John wrote:
I'm trying to generate rose plots (circular histograms) using MPL but
have been unable to find a straight forward way to do it. I want to
take the polar_bar.py example and modify it to use the geographic
rather than the mathematical convention for measuring angles, that is
0 is at the top of the pl
John,
We actually have the facility for using a log color scale directly,
including handling out-of-range values, but I confess I am having a
little trouble with it. I can't pursue it right now, but probably can
do so this evening. It looks like the problem is a bug, but I am not sure.
Eric
John wrote:
> Well, it seems like I'm making progress, but it's stll not the plot
> I'm hoping to produce. Something seems strange. First, it does create
> a contourf plot, but I really need to take log(zdata) and use imshow
> (which seems to handly the INF issue, wheras contourf crashes). On
>
Well, it seems like I'm making progress, but it's stll not the plot I'm
hoping to produce. Something seems strange. First, it does create a contourf
plot, but I really need to take log(zdata) and use imshow (which seems to
handly the INF issue, wheras contourf crashes). On another issue though,
onc
Hold on, see my errors, trying again
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Downloa
Shoot, still getting the error discussed above:
ValueError: shape mismatch: objects cannot be broadcast to a single
shapeFile "c:\07_jfb\Programming\Python\mod_flexpart\plotPickle.py", line
30, in
fp_plot(z);
File "c:\07_jfb\Programming\Python\mod_flexpart\plotflex.py", line 55, in
fp_plot
cs
John wrote:
> No, it didn't get cut off, I just decided to move that section forward
> before the code and forgot to delete that line ;)
>
> Okay, let's see...
>
> 1) Yes, I've left them in for the moment since I saw that they will be
> ignored, and I'm playing with different projections... s
Also, I don't know if it's related, but I'm getting this Error / Warning:
UnboundLocalError: local variable 'pylab' referenced before assignment
Traceback:
File
"c:\Python25\lib\site-packages\matplotlib\toolkits\basemap\basemap.py", line
2232, in imshow
ax = pylab.gca()
As my script calls th
No, it didn't get cut off, I just decided to move that section forward
before the code and forgot to delete that line ;)
Okay, let's see...
1) Yes, I've left them in for the moment since I saw that they will be
ignored, and I'm playing with different projections... seems it doesn't
hurt.
2) Yes,
I'd like to thank all those who participated in fixing this bug. It's much
appreciated.
David
2007/10/29, John Hunter <[EMAIL PROTECTED]>:
>
> On 10/29/07, Michael Droettboom <[EMAIL PROTECTED]> wrote:
>
> > I submitted a fix for this in matplotlib SVN r4047. Freetype takes a
> > FT_LOAD_FORCE_A
John wrote:
> Jeff,
>
> Thanks for the quick reply, below is my plotting code. Here are the
> answers to your question about my arrray:
>
> >>> type(Zdat); type(zdat)
>
>
> >>> shape(Zdat); shape(zdat)
> (180, 360)
> (596, 596)
> >>> shape(lons); shape(x)
> (360,)
> (596, 596)
> >>> shape(lats
Jeff,
Thanks for the quick reply, below is my plotting code. Here are the answers
to your question about my arrray:
>>> type(Zdat); type(zdat)
>>> shape(Zdat); shape(zdat)
(180, 360)
(596, 596)
>>> shape(lons); shape(x)
(360,)
(596, 596)
>>> shape(lats); shape(y)
(180,)
(596, 596)
I would like
John wrote:
> Can anyone explain this??
>
> >>> N.max(Zdat) #this is numpy.max function
> 1302.73592859
> >>> zdat,x,y =
> m.transform_scalar(Zdat,lons,lats,nx,ny,returnxy=True,order=0)
> >>> N.max (zdat)
> 0.0
> >>>
>
> In this case, Zdat is my original array sent to my plotting function.
>
Hi,
Some colleagues have sent some plots which they generated using IDL
(boo!!! hiss!! :D), and they look quite dissimilar to my matplotlib
ones. I would like to mimic their layout as much as possible, which so
far is a success. The only problem is that I don't know what font to
use. In IDL, I beli
Can anyone explain this??
>>> N.max(Zdat) #this is numpy.max function
1302.73592859
>>> zdat,x,y = m.transform_scalar
(Zdat,lons,lats,nx,ny,returnxy=True,order=0)
>>> N.max(zdat)
0.0
>>>
In this case, Zdat is my original array sent to my plotting function. It
seems to lose all it's data when I r
I installed svn r4071. `svn info ` and
`svnversion ` report the correct rev number. But
$ ipython -pylab
In [1]: matplotlib.__version__
Out[1]: '0.90.1'
In [2]: matplotlib.__revision__
Out[2]: '$Revision: 3975 $'
If I'm right, this is because in matplotlib/__init__.py:
__revision__ = '$Revision
On 10/31/07, Mark Bakker <[EMAIL PROTECTED]> wrote:
> This works fine, as apparantly colors='r' is interpreted as a sequence.
> This does not work, however:
>
> ax.add_collection( LineCollection( [[(0,0),(1,1)]], colors='r', linewidths=2
> ) )
> draw()
>
> Now I get an error: TypeError: CXX: type
That is one solution, but perhaps I should have asked about a solution for
contourf as well. It would be preferable to be able to use a logarithmic
colormap rather than translating the variable.
-
This SF.net email is sponsored
Hello -
I got confused about specifying colors and linewidths for LineCollections.
I think it would be helpful if the docstrings explicitly state that they
should be sequences.
I know, they do in some way, but it i
Maybe we should even check this on input, as the error message you get when
you don
20 matches
Mail list logo