Re: [Matplotlib-users] Limit legend to visible data

2011-01-30 Thread Peter Butterworth
ts.append(line_label) if label_objs: return ax.legend(label_objs, label_texts, **kwargs) elif ax.get_legend(): ax.get_legend().set_visible(False) -- thanks, peter butterworth -- Special Offer-- Down

Re: [Matplotlib-users] Best way to use Excel Data

2010-10-11 Thread Peter Butterworth
separate server process and allows accessing the database using a nonstandard variant of the SQL query language. On Sun, Oct 10, 2010 at 12:56 PM, Peter Butterworth wrote: > Hi, > > > To load csv data, I use a modified version of csv2rec for which the > data type of each colu

[Matplotlib-users] Annotation Toolbar

2010-10-11 Thread Peter Butterworth
nce.telenczuk.pl -- thanks, peter butterworth -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code an

Re: [Matplotlib-users] Best way to use Excel Data

2010-10-10 Thread Peter Butterworth
ives a lot of troubles with numbers. Sqlite is fast and data are secure. The power of this system is that you can query your data and plot what you need for example. I can share with you my script to import from csv to sqlite if you want. -- thanks, peter butte

Re: [Matplotlib-users] matplotlib colors vs html colors

2010-04-14 Thread Peter Butterworth
On Thu, Apr 15, 2010 at 5:16 AM, Peter Butterworth wrote: > matlab colors seem to follow html : > http://www.mathworks.com/access/helpdesk/help/techdoc/ref/colorspec.html for c, m, y but not for green, where matplotlib does follo

Re: [Matplotlib-users] matplotlib colors vs html colors

2010-04-14 Thread Peter Butterworth
etter than the html versions. It makes sense to me for the single-letter > colors to be chosen for good visibility and contrast in actual use, not for > consistency with the html names. In fact, I see no good argument for > consistency in this case. > > Eric > > >> >

[Matplotlib-users] matplotlib colors vs html colors

2010-04-11 Thread Peter Butterworth
sorry if this has been covered before, but I must say I've found the following quite confusing : color="cyan" is not in fact equivalent to color='c' in colors.py : Commands which take color arguments can use several formats to specify the colors. For the basic builtin colors, you can use a sin

[Matplotlib-users] getting legend loc

2010-04-08 Thread Peter Butterworth
Hi, I'm having trouble getting some properties that are easily set : leg=legend(loc=0) is there a way to retrieve the legend location ? In a similar vein : axis('scaled') is there a way to retrieve the "scaled" property ? If no methods/properties are available in the default API is it possible

Re: [Matplotlib-users] toolbar

2010-03-28 Thread Peter Butterworth
ARKERS LINESTYLES are sorted. 'steps' removed from linestyles On Sun, Mar 21, 2010 at 5:22 AM, Peter Butterworth wrote: > Correction: '0.99.3rc1' does not include the qt4_editor code, so you > do need to get

Re: [Matplotlib-users] toolbar

2010-03-20 Thread Peter Butterworth
Correction: '0.99.3rc1' does not include the qt4_editor code, so you do need to get the source files from svn. The feature is a nice addition to matplotlib.. On Sun, Mar 21, 2010 at 1:53 AM, Gökhan Sever wrote: > > > On Sat, Mar 20, 2010 at 7:43 PM, wrote: >> >> I'm using the recent '0.99.3rc1

Re: [Matplotlib-users] Hiding data via legend

2009-10-04 Thread Peter Butterworth
ker(5) else : line.set_picker(None) I've attached my line + legend picker example, in case it is of any use to anybody. On Mon, Sep 28, 2009 at 3:43 AM, John Hunter wrote: > On Sun, Sep 27, 2009 at 3:45 PM, Peter Butterworth wrote: >> On Sun, Sep 27, 2009 at 9:31 PM,

Re: [Matplotlib-users] Hiding data via legend

2009-09-27 Thread Peter Butterworth
On Sun, Sep 27, 2009 at 9:31 PM, Jae-Joon Lee wrote: >> Some feedback: If plotting a line2D as discrete points rather than a >> continuous line, you must use numpoints=2 for the legend picking to actually >> occur on the points. The alpha blending doesn't work on the legend symbols >> however. >>