Re: [Matplotlib-users] Multiple tick labels

2010-09-10 Thread Eric Firing
On 09/10/2010 10:54 AM, Brian Larsen wrote: > Hello all, > > I feel like this is possible but I am having trouble figuring it out. > > I want to put extra labels on the ticks on the xaxis like in the upper > panel of the figure > http://sprg.ssl.berkeley.edu/fast/graphics/socfig1.gif > > Following

[Matplotlib-users] Multiple tick labels

2010-09-10 Thread Brian Larsen
Hello all, I feel like this is possible but I am having trouble figuring it out. I want to put extra labels on the ticks on the xaxis like in the upper panel of the figure http://sprg.ssl.berkeley.edu/fast/graphics/socfig1.gif Following http://matplotlib.sourceforge.net/examples/axes_grid/d

[Matplotlib-users] Installing matplotlib on MacOS X 10.6.4

2010-09-10 Thread Yannis Haralambous
dear Matplotlib users, I can't manage to install matplotlib correctly on MacOS X 10.6.4. when I launch the DMG installer matplotlib-1.0.0-python.org-py2.6-macosx10.4.mpkg I get an error message, that my volume does not contain "System Python 2.6". I'm running a standard MacOS X 10.6.4 with pytho

Re: [Matplotlib-users] Math fonts not working after upgrading to MPL 1.0

2010-09-10 Thread Andre' Walker-Loud
It may not be an MPL issue, but rather Snow Leopard. I have a friend who had font troubles, but it was because Mac OSX 10.6 (Snow Leopard) changed the way fonts are handled. He had a file in his home directory (which he created on 10.5) which had some font specifications, which he had to al

[Matplotlib-users] colorbar questions ...

2010-09-10 Thread Oz Nahum
Hi Everyone, First I must cryout a little bit :-) Why colorbar is always so tricky ??? I'm trying to fine tune the colorbar of my contour plots. I would like to do the following things: 1) remove the box around it 2) hide the xticks 3) make the lines with the indicating colors with custom widths

Re: [Matplotlib-users] matplotlib/basemap plot geo data on background map

2010-09-10 Thread Jan Skowron
On Fri, Sep 10, 2010 at 14:46, izzybitsie wrote: > I did not understand the need for me to write my own transformation > functions. I only used lat/lon->x/y for the points in the curve and the > polygon shows up OK. What should I write my own transformations for? Because matplotlib (and possibly

Re: [Matplotlib-users] matplotlib/basemap plot geo data on background map

2010-09-10 Thread izzybitsie
I tested the same plot with a background image in Mercator with same results and I also tested with Mercator covering almost the entire world with the same results. Only a little portion of the background image shows as background although the polygon looks OK in all cases (with maps drawn and wit

Re: [Matplotlib-users] matplotlib/basemap plot geo data on background map

2010-09-10 Thread izzybitsie
Thanks for your answer. I'm actually looking to plot filled curves whose points are lat/lon points on top of a given background map. The problem experienced is misrepresentation of background map when I insert it using warpimage(), the only function to do this I found so far. Aman Thakral wrote:

Re: [Matplotlib-users] matplotlib/basemap plot geo data on background map

2010-09-10 Thread Jan Skowron
Hi, documentation of mpl_toolkits.basemap.warpimage (http://matplotlib.sourceforge.net/basemap/doc/html/api/basemap_api.html#mpl_toolkits.basemap.Basemap.warpimage) states that it could only be used with a very specific set of images: "Specified image must have pixels covering the whole globe in a

Re: [Matplotlib-users] matplotlib/basemap plot geo data on background map

2010-09-10 Thread Aman Thakral
If you're just looking for points, you can use ax.scatter(). It will plot the points. Also, make sure you set the zorder keyword argument in the scatter. Example: x=range(10) y=range(10) z=range(10,20) ax.scatter(x,y,c=z,zorder=10) Hope this helps, Aman On Fri, Sep 10, 2010 at 1:06 PM, izzybit

[Matplotlib-users] matplotlib/basemap plot geo data on background map

2010-09-10 Thread izzybitsie
Hi, I'm new to matplotlib and I'm looking for an easy way to plot geographical data on a background map: bkgmap.png http://old.nabble.com/file/p29679002/bkgmap.png So far I only found out about warpimage() to do this but only part of bkgmap.png comes up in the output image. I think this is becau

Re: [Matplotlib-users] Thicker Frame and Remove Part of Frame

2010-09-10 Thread Ted Kord
Hi Tony Thanks. Works perfectly! Ted On 10 September 2010 15:54, Tony S Yu wrote: > > On Sep 10, 2010, at 10:42 AM, Ted Kord wrote: > > > Hi > > > > How can I: > > > > 1. make the frame of the plot thicker and > > 2. remove the top and right of the frame. > > > > Thanks > > > > Ted > > There

Re: [Matplotlib-users] Thicker Frame and Remove Part of Frame

2010-09-10 Thread Tony S Yu
On Sep 10, 2010, at 10:42 AM, Ted Kord wrote: > Hi > > How can I: > > 1. make the frame of the plot thicker and > 2. remove the top and right of the frame. > > Thanks > > Ted There are probably a number of ways to do this (partly because spines are relatively new). Here's one possibility:

[Matplotlib-users] Thicker Frame and Remove Part of Frame

2010-09-10 Thread Ted Kord
Hi How can I: 1. make the frame of the plot thicker and 2. remove the top and right of the frame. Thanks Ted -- Automate Storage Tiering Simply Optimize IT performance and efficiency through flexible, powerful, automat

Re: [Matplotlib-users] Adjusting Image size

2010-09-10 Thread Benjamin Root
On Fri, Sep 10, 2010 at 4:27 AM, Nils Wagner wrote: > Hi all, > > what is needed to save a figure when the size is given in > pixels, i.e. 1024x772 ? > The default is 800x600 pixels. > > from pylab import plot, savefig > from numpy import sin,linspace,pi > x = linspace(0,2*pi,200) > plot(x,sin(x))

Re: [Matplotlib-users] Adjusting Image size

2010-09-10 Thread Tony S Yu
On Sep 10, 2010, at 5:27 AM, Nils Wagner wrote: > Hi all, > > what is needed to save a figure when the size is given in > pixels, i.e. 1024x772 ? > The default is 800x600 pixels. > > from pylab import plot, savefig > from numpy import sin,linspace,pi > x = linspace(0,2*pi,200) > plot(x,sin(x))

Re: [Matplotlib-users] problem in showing the plot!!!

2010-09-10 Thread Benjamin Root
On Fri, Sep 10, 2010 at 4:44 AM, sa6113 wrote: > > when I want to show the plot canvas, it doesn't stay at all, note that I > need > to use "backendQtagg", I mean when I use "pylab" there is no problem in > showing the plot canvas, what is the problem? please help me. > I use this simple code: >

[Matplotlib-users] problem in showing the plot!!!

2010-09-10 Thread sa6113
when I want to show the plot canvas, it doesn't stay at all, note that I need to use "backendQtagg", I mean when I use "pylab" there is no problem in showing the plot canvas, what is the problem? please help me. I use this simple code: " from matplotlib.backends.backend_qtagg import FigureCanvasQT

[Matplotlib-users] Adjusting Image size

2010-09-10 Thread Nils Wagner
Hi all, what is needed to save a figure when the size is given in pixels, i.e. 1024x772 ? The default is 800x600 pixels. from pylab import plot, savefig from numpy import sin,linspace,pi x = linspace(0,2*pi,200) plot(x,sin(x)) savefig('test') Nils --