[Matplotlib-users] unfilled markers?

2009-01-25 Thread C M
Sorry this is a basic question but I can't figure out where in the docs nor archives I could find this. Is there a built in method for having unfilled markers? (ones that match the line color). I could set mfc (marker face color) to white and mec (marker edge color) to the color of my line, but

Re: [Matplotlib-users] unfilled markers?

2009-01-25 Thread Norbert Nemec
mfc=None does the job. mec should then default to the line color. C M wrote: Sorry this is a basic question but I can't figure out where in the docs nor archives I could find this. Is there a built in method for having unfilled markers? (ones that match the line color). I could set mfc

[Matplotlib-users] universal_newline in matplotlib 0.91.2?

2009-01-25 Thread C Lewis
In matplotlib.mlab.csv2rec in 0.91.2 (*) headers = reader.next() fails with Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode? Which sounds like a good idea, but I can't figure out how to specify that in/with/before calling

Re: [Matplotlib-users] universal_newline in matplotlib 0.91.2?

2009-01-25 Thread John Hunter
On Sun, Jan 25, 2009 at 3:23 PM, C Lewis chle...@nature.berkeley.edu wrote: In matplotlib.mlab.csv2rec in 0.91.2 (*) headers = reader.next() fails with Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode? Which sounds like a good

Re: [Matplotlib-users] unfilled markers?

2009-01-25 Thread C M
mfc=None does the job. mec should then default to the line color. Hmm, I just tried that and it doesn't default to the line color, it instead makes a black edge color for the marker. I am still using version 0.90.1; is this a newer feature in the latest release? (yes, I will upgrade, just

Re: [Matplotlib-users] universal_newline in matplotlib 0.91.2?

2009-01-25 Thread C Lewis
Tiny case appended. On my system (OS X), csv2rec() of the first file is fine, csv2rec() of the second fails with the mentioned error; they only differ in newline characters. Inconveniently, the one that fails seems to be Excel's default export. from matplotlib.mlab import csv2rec from

Re: [Matplotlib-users] universal_newline in matplotlib 0.91.2?

2009-01-25 Thread John Hunter
On Sun, Jan 25, 2009 at 3:59 PM, C Lewis chle...@nature.berkeley.edu wrote: Tiny case appended. On my system (OS X), csv2rec() of the first file is fine, csv2rec() of the second fails with the mentioned error; they only differ in newline characters. Inconveniently, the one that fails seems to

Re: [Matplotlib-users] unfilled markers?

2009-01-25 Thread Norbert Nemec
Sorry for my misleading words - I did not correctly recall my own work from back then... In fact, the code as it is does not change the mec automatically when the mfc of a filled_marker is set to None but leaves it black. I did consider adding an automation to change but decided against it.

[Matplotlib-users] import pylab problem

2009-01-25 Thread Linda Chen
Dear matplotlib-users, I'm having trouble importing pylab and I hope someone can help me. The error message is: Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\Lindacd desktop\python C:\Documents and

Re: [Matplotlib-users] import pylab problem

2009-01-25 Thread John Hunter
On Sat, Jan 24, 2009 at 3:38 PM, Linda Chen ch...@mit.edu wrote: Dear matplotlib-users, I'm having trouble importing pylab and I hope someone can help me. The error message is: Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and

[Matplotlib-users] Background color of the entire image..

2009-01-25 Thread AlsCdz
Hello, is there any way to color the entire image. Not just in a way: http://matplotlib.sourceforge.net/examples/pylab_examples/color_demo.html http://matplotlib.sourceforge.net/examples/pylab_examples/color_demo.html All the white part around the chart. Is it possible to change that color as

Re: [Matplotlib-users] unfilled markers?

2009-01-25 Thread C M
On Sun, Jan 25, 2009 at 6:44 PM, Norbert Nemec norbert.nemec.l...@gmx.dewrote: Sorry for my misleading words - I did not correctly recall my own work from back then... In fact, the code as it is does not change the mec automatically when the mfc of a filled_marker is set to None but leaves

Re: [Matplotlib-users] Background color of the entire image..

2009-01-25 Thread John Hunter
On Sun, Jan 25, 2009 at 9:26 PM, AlsCdz cadez_a...@siol.net wrote: Hello, is there any way to color the entire image. Not just in a way: http://matplotlib.sourceforge.net/examples/pylab_examples/color_demo.html http://matplotlib.sourceforge.net/examples/pylab_examples/color_demo.html All

Re: [Matplotlib-users] unfilled markers?

2009-01-25 Thread Jae-Joon Lee
Norbert, It did, thank you! One question, though: when I originally tried something like this, it didn't work, because it was treating pl as a list and giving me the error of list object has no attribute 'set_mec()' Why does the addition of the comma to pl allow it to see it as a line?

[Matplotlib-users] using savefig to save plot in desired size

2009-01-25 Thread Abhinav Verma
Hello, It may be a very basic question, but I could not find the solution in archives or the documentation. I need to make a line plot (in square aspect ratio) and then save the figure which is also square in size, i.e. like 600x600 pixels and not 800x600. How can I acheive this? to get the

Re: [Matplotlib-users] using savefig to save plot in desired size

2009-01-25 Thread Eric Firing
Abhinav Verma wrote: Hello, It may be a very basic question, but I could not find the solution in archives or the documentation. I need to make a line plot (in square aspect ratio) and then save the figure which is also square in size, i.e. like 600x600 pixels and not 800x600. How can I

Re: [Matplotlib-users] using savefig to save plot in desired size

2009-01-25 Thread Abhinav Verma
Yes Eric this is what I wanted and Many thanks for your help. My question now extends a little. Due to this .. my yaxis label is truncated in the png. How can I make sure that my figure is square and also contains everything. Is it possilbe? Thanks again, On Mon, Jan 26, 2009 at 8:42 AM, Eric