[Matplotlib-users] problems when zooming in to the pixel level

2007-07-06 Thread Rein van den Boomgaard
Dear All, i'm displaying an image (cmap = gray, interpolation = nearest: i want to see the pixels) and i plot point (markers) on top of the image. These markers are calculated at the subpixel level so i want to zoom in to see whether they are placed correctly. When zooming in i notice two things:

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-06 Thread Edin Salkovic
On 7/6/07, Kaushik Ghose <[EMAIL PROTECTED]> wrote: > Hi Edin, > > Edin Salkovic wrote: > >> > >> m.text(0,0,'$\sum_{n=1}^{100}$');m.axis('off');m.savefig('test.svg') > > > > Shouldn't that be: > > r'$\sum_{n=1}^{100}$' # i.e. a "raw" string. > > > > or: > > > > '$\\sum_{n=1}^{100}$' # Escaped b

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-06 Thread Kaushik Ghose
Hi Edin, Edin Salkovic wrote: >> >> m.text(0,0,'$\sum_{n=1}^{100}$');m.axis('off');m.savefig('test.svg') > > Shouldn't that be: > r'$\sum_{n=1}^{100}$' # i.e. a "raw" string. > > or: > > '$\\sum_{n=1}^{100}$' # Escaped backslash > Actually the original string renders as desired. Its the sv

[Matplotlib-users] Exclude top and right lines from a plot frame

2007-07-06 Thread Pecevski Dejan
Hi, Is there some convenient way to setup a frame in axes which only has the bottom and left lines? I've tried some workaround solution like this: a = subplot(211) a.set_frame_on(False) a.hlines(ymin,xmin,xmax) a.vlines(xmin,ymin,ymax) Is there a more appropriate solution? thanks, Dejan

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-06 Thread Steve Schmerler
Edin Salkovic wrote: > Hi kaushik, > > On 7/6/07, kaushik.ghose <[EMAIL PROTECTED]> wrote: >> Hi, >> >> When I do >> >> m.text(0,0,'$\sum_{n=1}^{100}$');m.axis('off');m.savefig('test.svg') > > Shouldn't that be: > r'$\sum_{n=1}^{100}$' # i.e. a "raw" string. > > or: > > '$\\sum_{n=1}^{100}$'

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-06 Thread Edin Salkovic
Hi kaushik, On 7/6/07, kaushik.ghose <[EMAIL PROTECTED]> wrote: > Hi, > > When I do > > m.text(0,0,'$\sum_{n=1}^{100}$');m.axis('off');m.savefig('test.svg') Shouldn't that be: r'$\sum_{n=1}^{100}$' # i.e. a "raw" string. or: '$\\sum_{n=1}^{100}$' # Escaped backslash Does this help? Cheers,

Re: [Matplotlib-users] basemap covering a small area

2007-07-06 Thread Jeff Whitaker
Jesper Larsen wrote: > Hi matplotlib users, > > I am interested in making basemap plots covering only a small area. When I do > this the meridians and parallels (and labelling of these) look strange. I > have pasted in a simple example below showing the problem (at least on my > computer): > > i

[Matplotlib-users] Segmentation fault with import pylab statement

2007-07-06 Thread Achim Gaedke
Hi! This little prorgram (it accidentially came to my keyboard) results in a segmentation fault: # start import numpy import pylab pulsewidth=3e-6 t_array=(numpy.arange(2048, dtype=numpy.float32)-1024)*90e-9 sinc_array=numpy.array((len(t_array),),dtype=numpy.float32) sinc_array[:]=1e-6 sinc_array

Re: [Matplotlib-users] Latex equations and SVG export

2007-07-06 Thread Steve Schmerler
kaushik.ghose wrote: > m.text(0,0,'$\sum_{n=1}^{100}$');m.axis('off');m.savefig('test.svg') > > matplotlib renders it fine, but won't save it to svg correctly - the > summation symbol doesn't show up. > > Is this a configuration issue on my part, or is svg support for latex > currently incompl

[Matplotlib-users] Problem with linear plot after semilog plot

2007-07-06 Thread Lorenzo Isella
Dear All, I am a bit puzzled at an unusual problem I am experiencing. Fundamentally, I call a couple of functions and I plot some data. First, I create a semilog plot using pylab.semilogx, then I make a normal linear plot. But, in the second case I get an error message: Traceback (most recent call

[Matplotlib-users] basemap covering a small area

2007-07-06 Thread Jesper Larsen
Hi matplotlib users, I am interested in making basemap plots covering only a small area. When I do this the meridians and parallels (and labelling of these) look strange. I have pasted in a simple example below showing the problem (at least on my computer): import pylab from matplotlib.toolkit