Re: [Matplotlib-users] difficult LaTeX formula for rendering

2013-03-27 Thread Ilias Miroslav
Hi again, if you did not receive the attachement of my previous email, the files are here: https://docs.google.com/folder/d/0B8qBHKNhZAipZ2pnS0ViTUZBdXM/edit?usp=sharing The log of the simplest non-rendering formula: .. math:: \begin{array}{c} {\Psi}^{L} \\ {\Psi}^{S} \end{array} is as f

Re: [Matplotlib-users] Trouble with legend and axis scaling

2013-03-27 Thread Jae-Joon Lee
The first issue is a bug, and I opened a PR that fixes this. https://github.com/matplotlib/matplotlib/pull/1864 In the comments of the PR, you can find a workaround. Regards, -JJ On Wed, Mar 27, 2013 at 11:09 PM, Hackstein wrote: > Sterling, > > I'm using matplotlib version 1.2.0 with agg

Re: [Matplotlib-users] problem with axhline and yscale

2013-03-27 Thread Steven Boada
Yeah, when I used my officemate's computer (matplotlib 1.1.1) it works fine... I am running... In [129]: import matplotlib In [130]: matplotlib.__version__ Out[130]: '1.2.x' Interesting... Steven On Wed Mar 27 16:29:53 2013, ChaoYue wrote: > when saving as jpg, I cannot reproduce the problem

Re: [Matplotlib-users] problem with axhline and yscale

2013-03-27 Thread ChaoYue
when saving as jpg, I cannot reproduce the problem. I am using version 1.2 Chao On Wed, Mar 27, 2013 at 10:16 PM, Steven Boada [via matplotlib] < ml-node+s1069221n40764...@n5.nabble.com> wrote: > Hey List, > > If you create a horizontal line, and then adjust the size of the figure, > or axis lim

Re: [Matplotlib-users] Plotting from datafile

2013-03-27 Thread Steven Boada
Hey Sayan, Here is the manual page: http://docs.scipy.org/doc/numpy/reference/generated/numpy.genfromtxt.html It works (basically) the same as loadtxt, but it is more flexible when there are holes in your data. Good luck. Steven On Wed Mar 27 10:07:10 2013, Sayan Chatterjee wrote: > Hi Steve

[Matplotlib-users] problem with axhline and yscale

2013-03-27 Thread Steven Boada
Hey List, If you create a horizontal line, and then adjust the size of the figure, or axis limits the horizontal line does not move with everything else... To reproduce in ipython -pylab: axhline(5) yscale('log') ylim(0.5,30) The line stays where it started and is not moved when the plot is

[Matplotlib-users] difficult LaTeX formula for rendering

2013-03-27 Thread Ilias Miroslav
Dear experts, in our sphinx-based project documentation (www.diracprogram.org) we have a complicated latex math formula, which is not rendered: /usr/lib/pymodules/python2.7/matplotlib/sphinxext/mathmpl.py:56: Warning: Could not render math expression $i \hbar \frac{\partial}{\partial t} \left(

[Matplotlib-users] ANN: matplotlib 1.2.1 release

2013-03-27 Thread Michael Droettboom
I'm pleased to announce the release of matplotlib 1.2.1. This is a bug release and improves stability and quality over the 1.2.0 release from four months ago. All users on 1.2.0 are encouraged to upgrade. Since github no longer provides download hosting, our tarballs and binaries are back on

Re: [Matplotlib-users] Trouble with legend and axis scaling

2013-03-27 Thread Sterling Smith
Frix, I get the same error for your first example with v1.1.1 [although I had to comment out the med_r = np.median(x_r) to get it to run]. You should probably file a bug at [1]. I get the same result for your yaxis. You need to change the formatter to ax.yaxis.set_major_formatter(plt.Scalar

Re: [Matplotlib-users] Plotting from datafile

2013-03-27 Thread Sayan Chatterjee
Hi Steven, I am a newbie to Python and hence Matplotlib. I cannot get your point properly. Could you please redirect me to a page where the usage is demonstrated? As I can see, you're a doctoral student in Physics, it might be worthwhile to tell you that I'm trying to code a Zeldovich Approximat

Re: [Matplotlib-users] Plotting from datafile

2013-03-27 Thread Steven Boada
Another, slightly more flexible, option is the genfromtxt function, also in numpy. Normally you should try genfromtxt after loadtxt doesn't work. Or, that is my normal method. Steven On Wed Mar 27 07:16:45 2013, Sayan Chatterjee wrote: > Thank you very much for your prompt reply. > > Florian,

Re: [Matplotlib-users] Trouble with legend and axis scaling

2013-03-27 Thread Hackstein
Sterling, I'm using matplotlib version 1.2.0 with agg backend. Here are two code examples, one for each problem. The first one doesn't save the figure due to the legend problem, seterr causes the script to stop with an error at that position. The second example shows the scientific labels on th

Re: [Matplotlib-users] set_scale and set_xscale

2013-03-27 Thread Benjamin Root
On Wed, Mar 27, 2013 at 1:03 AM, Gökhan Sever wrote: > Hello, > > Aren't these two log scaling calls supposed to be performing the same > action? > > Here is a simple script tested in ipython --pylab > > fig = plt.figure(figsize=(5, 5)) > ax1 = fig.add_subplot(1,1,1) > ax1.plot(np.random.randn(10

[Matplotlib-users] ANN: matplotlib 1.2.1 release

2013-03-27 Thread Michael Droettboom
I'm pleased to announce the release of matplotlib 1.2.1. This is a bug release and improves stability and quality over the 1.2.0 release from four months ago. All users on 1.2.0 are encouraged to upgrade. Since github no longer provides download hosting, our tarballs and binaries are back on

Re: [Matplotlib-users] Plotting from datafile

2013-03-27 Thread Alexander Eberspaecher
On Wed, 27 Mar 2013 14:02:58 +0530 Sayan Chatterjee wrote: > I'm new to Matplotlib. It might be a silly question, how does one plot > data(not functions) in Matplotlib. Besides the solution given in the first reply, you may also check https://github.com/dmcdougall/mpl_binutils Regards Alex --

Re: [Matplotlib-users] Plotting from datafile

2013-03-27 Thread Sayan Chatterjee
Thank you very much for your prompt reply. Florian, your reply seems to be the answer to my question. I'll try it out. If can't figure out,I'll get back to you. On 27 March 2013 15:37, Florian M. Wagner wrote: > Hey Sayan, > > for reading in simple ASCII-Files containing your two arrays you

Re: [Matplotlib-users] Plotting from datafile

2013-03-27 Thread Florian M. Wagner
Hey Sayan, for reading in simple ASCII-Files containing your two arrays you should have a look at the numpy.loadtxt function. Scatter plots in matplotlib are then easily created as shown here http://matplotlib.org/examples/pylab_examples/scatter_demo.html For your purpose you can do somethi

[Matplotlib-users] Plotting from datafile

2013-03-27 Thread Sayan Chatterjee
Dear All, I'm new to Matplotlib. It might be a silly question, how does one plot data(not functions) in Matplotlib. How: 1)Two arrays (X and Y) can be plotted in a scatter diagram? 2) or a number of data files can used to produce different plots having different(sequential) name? Thanks in anti