[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

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

Re: [Matplotlib-users] Plotting from datafile

2013-03-27 Thread Alexander Eberspaecher
On Wed, 27 Mar 2013 14:02:58 +0530 Sayan Chatterjee sayanchatter...@gmail.com 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

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 gokhanse...@gmail.com 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)

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

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] 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

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

[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

[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(

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 news.hackst...@gmx.net wrote: Sterling, I'm using matplotlib