Eric Firing | 1 Nov 08:22
Favicon
Gravatar

Re: Basemap help, imshow, transform_scaler

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:
> 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, once the image is created, when I draw the map 
> components it covers the image entirely.. so I just see coastlines, 
> meridians, etc on a whilte background as if I had never plotted the data.
>  
> Thanks for helping with this! I'm really trying to make a movement with 
> my colleagues away from matlab, but I need to have things operating more 
> smoothly... lately it hasn't been going so well. This is a great product 
> you've made!
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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.
(Continue reading)

Gary Ruben | 1 Nov 11:29
Picon

Re: IDL Font question

IDL uses the Hershey vector fonts
<http://www.ifi.uio.no/it/latex-links/STORE/opt/rsi/idl/help/online_help/Hershey_Vector_Font_Samples.html>

The problem is that these are not trutype fonts, so the easiest solution 
is probably to find some free sans-serif font that looks close to 
Hershey on a free font site.

HTH,
Gary R.

Jose Gomez-Dans wrote:
> 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 believe it is called "Roman" (there's an smudged
> example here: <http://www.astro.ufl.edu/~warner/IDL5220/HW4w.jpg>).
> Does anyone know a suitable alternative?
> 
> Thanks!
> Jose

-------------------------------------------------------------------------
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.
Download your FREE copy of Splunk now >> http://get.splunk.com/
Angus McMorland | 1 Nov 13:12
Picon

Re: IDL Font question

On 01/11/2007, Jose Gomez-Dans <jgomezdans@...> wrote:
> 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 believe it is called "Roman" (there's an smudged
> example here: <http://www.astro.ufl.edu/~warner/IDL5220/HW4w.jpg>).
> Does anyone know a suitable alternative?

Not quite the answer you were looking for, but a completely different
approach, if you can ask them to resend the data, is to get them to
save out a postscript file, which IDL can do. Then you can edit the
components with a tool like inkscape and standardise the fonts across
all graphs.

Angus.
--

-- 
AJC McMorland, PhD Student
Physiology, University of Auckland

-------------------------------------------------------------------------
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.
Download your FREE copy of Splunk now >> http://get.splunk.com/
Alan G Isaac | 1 Nov 19:57
Picon
Favicon
Gravatar

Re: Rose plot example?

<URL:http://www.mail-archive.com/matplotlib-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f <at> public.gmane.org/msg01221.html>

hth,
Alan Isaac

-------------------------------------------------------------------------
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.
Download your FREE copy of Splunk now >> http://get.splunk.com/
John | 1 Nov 23:00
Picon

Re: Basemap help, imshow, transform_scaler

Thanks Eric...
 
Just a question, I've noticed that if I put enough resolution in lev_exp (ie. lev_exp=arange(0,log10(z.max()),0.15)  #or more is even nicer! Then the file size gets quite large due to all the colors. Any suggestions? I know its a separate issue...
 
-john
-------------------------------------------------------------------------
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.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Eric Firing | 1 Nov 23:27
Favicon
Gravatar

Re: Basemap help, imshow, transform_scaler

John wrote:
> Thanks Eric...
>  
> Just a question, I've noticed that if I put enough resolution in lev_exp 
> (ie. lev_exp=arange(0,log10(z.max()),0.15)  #or more is even nicer! Then 
> the file size gets quite large due to all the colors. Any suggestions? I 
> know its a separate issue...
>  
> -john

I don't have any suggestions for reducing file size.  What backend are 
you using?

Eric

-------------------------------------------------------------------------
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.
Download your FREE copy of Splunk now >> http://get.splunk.com/
Andrew McLean | 1 Nov 23:26
Picon

Re: IDL Font question

It depends exacly what you need, but this might help:

Ghostscript comes with the Hershey fonts. You should be able to choose 
an appropriate font name in Matplotlib, e.g. Hershey-Gothic-English, and 
produce a Postscript file using an appropriate backend. You should then 
be able to convert that to one of any number of formats (bitmaps and 
PDF) using Ghostscript. Note the use of the word should, I haven't tried 
this myself!

- Andrew

Gary Ruben wrote:
> IDL uses the Hershey vector fonts
> <http://www.ifi.uio.no/it/latex-links/STORE/opt/rsi/idl/help/online_help/Hershey_Vector_Font_Samples.html>
>
> The problem is that these are not trutype fonts, so the easiest solution 
> is probably to find some free sans-serif font that looks close to 
> Hershey on a free font site.
>
> HTH,
> Gary R.
>
> Jose Gomez-Dans wrote:
>   
>> 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 believe it is called "Roman" (there's an smudged
>> example here: <http://www.astro.ufl.edu/~warner/IDL5220/HW4w.jpg>).
>> Does anyone know a suitable alternative?
>>
>> Thanks!
>> Jose
>>     

-------------------------------------------------------------------------
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.
Download your FREE copy of Splunk now >> http://get.splunk.com/
John | 2 Nov 00:35
Picon

Re: Basemap help, imshow, transform_scaler

The default, TkAgg. I've tried the others as I have some strange behavior with TkAgg, but they don't work at all... In fact, I think I'll start another thread, because the problem I have is now predictable... I would be interested to see if there's a solution...

-------------------------------------------------------------------------
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.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
John | 2 Nov 00:40
Picon

TkAgg freezing, problems with backend

I have strange behavior when using TkAgg on a script which produces plots repeatedly. On the first instance of the plotting, the Figure window is not interactive, and needs to be 'killed' by clicking the x in the top right (this is on XP, by the way). On subsequent calls, it seems fine.
 
What's is strange is when I run it in a debugging environment such as Wing or otherwise, after it's 'killed' the first time I can use close() to close it, but not on the first instance. Could this be related to not using the figure() command? I usually just call with functions like plot(x) or imshow(x) or contour(x) etc...
-------------------------------------------------------------------------
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.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Jed Frechette | 2 Nov 04:38
Picon

Re: Rose plot example?

On Thu, 1 Nov 2007
Alan G Isaac <aisaac@...> wrote:
> <URL:http://www.mail-archive.com/matplotlib-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f <at> public.gmane.org/msg01221.html>
>
>hth,

Ah, I sould be able to modify that to do what I need but it's to bad
there isn't a more elegant way than remaping the data and faking the
labels.

Thanks for the quick help.

--

-- 
Jed Frechette
jdfrechette.alturl.com

-------------------------------------------------------------------------
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.
Download your FREE copy of Splunk now >> http://get.splunk.com/

Gmane