Re: [Matplotlib-users] ImportError: No module named ma

2009-10-12 Thread Chaitanya Krishna
ct 12, 2009 at 8:23 PM, Robert Kern wrote: > On 2009-10-12 12:19 PM, Chaitanya Krishna wrote: >> Hi all, >> >> numpy.__file__ gives 1.3.0 >> >>>>> import numpy >>>>> print numpy.__file__ >> /Library/Python/2.5/site-packages/numpy-1.3.0-py

Re: [Matplotlib-users] ImportError: No module named ma

2009-10-12 Thread Chaitanya Krishna
Hi all, numpy.__file__ gives 1.3.0 >>> import numpy >>> print numpy.__file__ /Library/Python/2.5/site-packages/numpy-1.3.0-py2.5-macosx-10.5-i386.egg/numpy/__init__.pyc Chaitanya On Mon, Oct 12, 2009 at 7:11 PM, Robert Kern wrote: > On 2009-10-12 11:58 AM, Chaitanya Kri

[Matplotlib-users] ImportError: No module named ma

2009-10-12 Thread Chaitanya Krishna
Hi all, I am on Mac OS 10.5 and numpy 1.3.0 and matplotlib 0.91.1. When I run a qtdemo script, it fails with File "/Library/Python/2.5/site-packages/matplotlib-0.91.1-py2.5-macosx-10.5-i386.egg/matplotlib/numerix/ma/__init__.py", line 16, in from numpy.core.ma import * ImportError: No modul

Re: [Matplotlib-users] Remove box around legend?

2009-07-09 Thread Chaitanya Krishna
Hi, legend.draw_frame(False) should do the trick. Check out http://matplotlib.sourceforge.net/api/artist_api.html?highlight=draw_frame#matplotlib.legend.Legend.draw_frame Cheers, Chaitanya On Thu, Jul 9, 2009 at 11:18 PM, Joseph Smidt wrote: > I see lots of examples on how to play around with th

Re: [Matplotlib-users] plots do not scale to size

2009-06-09 Thread Chaitanya Krishna
Hi Paul, I am not sure if it is a bug. But, it is usual that such a thing happens when you are making small figures (like in your case). Try adjusting the following parameters in your rc file, in particular increase the left space. # The figure subplot parameters. All dimensions are fraction of

Re: [Matplotlib-users] making publication quality plots

2009-06-02 Thread Chaitanya Krishna
Hi Paul, Can you try font.size: 10 legend.fontsize: small [or medium] in your rc file. Defining the fontsize and then defining the fontsize of the xtick labels, legend etc with respect to this font size seems to work better than defining everything by hand. Switching off the legend frame does se

Re: [Matplotlib-users] making publication quality plots

2009-05-29 Thread Chaitanya Krishna
Hi, I usually fix the size of the figure when I produce it. I use rcparams below for a single column plot. This usually solves the problem. What you see is what you get in the final document if you use the same size of the figure as used to produce it. def paper_single(): plt.rc('figure', fig

[Matplotlib-users] rc font sizes do not apply to math.text font sizes?

2009-05-27 Thread Chaitanya Krishna
Hi all, I am using the following rc params for the text font size plt.rc('font', size=10.0) plt.rc('xtick', labelsize='small') plt.rc('ytick', labelsize='small') plt.rc('legend', fontsize='medium', numpoints=1) plt.rc('mathtext', fontset='custom', it='serif:regular') But font

Re: [Matplotlib-users] subplot

2009-05-18 Thread Chaitanya Krishna
Hi guys, +1 for rowspan and colspan. Much cleaner I would say. Chaitanya On Mon, May 18, 2009 at 11:17 PM, Alan G Isaac wrote: > On 5/18/2009 4:27 PM Yannick Copin apparently wrote: >> super-mongo WINDOW command (e.g. >> http://www.astro.princeton.edu/~rhl/sm/sm.html#SYN83) > > > The functional

[Matplotlib-users] Not able to write eps file ...

2009-05-18 Thread Chaitanya Krishna
Hi all, I guess I am doing something silly, but it is not obvious. Guess one of you can help!! I am using NumPy 1.3.0 and matplotlib 0.98.5.2 I am using the following to plot, ... plt.rc('lines', linewidth=1.5) ... sym = cycle([{'c':'b', 'ls':'-', 'marker':'o', 'mfc':'b', 'mec':'b', 'mew':'1.0'

[Matplotlib-users] figuresize and dpi

2009-05-12 Thread Chaitanya Krishna
Hi all, I define the figure size as fig = plt.figure(figsize=(7,0.75*7)), then plot the figure and save it as both a png and an eps. If I then measure the size of the figure as displayed (displayed with 0 zoom) on the computer screen with a ruler, it does not measure 7 in. Why is it so? Am I doin

[Matplotlib-users] Different plot settings for different circumstances ...

2009-04-21 Thread Chaitanya Krishna
Hi guys, I generally use matplotlib it extract information from raw data and use this for plotting. I wonder what most of you guys out there use it for? But, anyways the point of this mail is to ask if there is a clever way of making different plots for different circumstances. For example, tryin

Re: [Matplotlib-users] matplotlib.pyparsing.ParseFatalException: Expected end of math '$'

2009-04-14 Thread Chaitanya Krishna
e plot but with a dummy symbol. A plain [ or ] does not even render the plot. Just tried, \left[ and \right] and they work. Cheers, Chaitanya On Tue, Apr 14, 2009 at 6:30 PM, Michael Droettboom wrote: > You need to escape the [ ], e.g. \[ \] > Does that work for you? > > Cheers, &g

[Matplotlib-users] matplotlib.pyparsing.ParseFatalException: Expected end of math '$'

2009-04-14 Thread Chaitanya Krishna
Forgot to mention the version in the last mail. I am using In [2]: matplotlib.__version__ Out[2]: '0.91.1' Cheers, Chaitanya -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment.

[Matplotlib-users] matplotlib.pyparsing.ParseFatalException: Expected end of math '$'

2009-04-14 Thread Chaitanya Krishna
Hi, Thanks for the previous replies. They were very helpful. I would like to use '[' and ']' in my ylabels. But, when I try to use them I get the following error Lots of tracebacks here ... matplotlib.pyparsing.ParseFatalException: Expected end of math '$' $V_{Fe_{53}M} - V_{Fe_{54}}\ \ [\AA^{3}

[Matplotlib-users] Changing symbols instead of colors for lines ...

2009-04-14 Thread Chaitanya Krishna
Hello all, Usually when I plot two or more lines, the color of the lines change. Is it possible to change this default behavior so that when I plot two or more lines, the symbols change and not the color. This would be useful if someone is trying to make plots in black and white so that the symbo

Re: [Matplotlib-users] making the space between ticks

2009-03-05 Thread Chaitanya Krishna
Hi all, I am wondering how I can get space in the axis label while using the Latex mode. That is, when I use pylab.ylabel(r'$V [A^{3}]$') I don't get any space in between V and [. I also tried using the math mode spacing for Latex, So, if I try to do pylab.ylabel(r'$V\;[A^{3}]$'), I only get V a

Re: [Matplotlib-users] matplotlib on remote host Mac OS/X

2009-02-17 Thread Chaitanya Krishna
Hi, I think your situation is different from mine, but just thought it might help. I have a server running linux and I use mac pro to connect to the server and export graphics from the linux server. I could get my mac pro to display the graphics from the linux server only after I start X11 on my