Re: [Matplotlib-users] autoscale question

2007-08-23 Thread Fabrice Silva
Le Wed, 22 Aug 2007 18:21:40 -0700, Tom Vaughan a écrit:

> Why on the YellowDog 3 system would the x-axis show up as 0 - 2.5, and
> on the Ubuntu Feisty system would the x-axis show up as 2.2 - 2.4? I am
> attempting to resolve an autoscale problem elsewhere, and I must of
> screwed something up when I built matplotlib. But what?

Are you sure you have the same pref defined in conf files like 
~/.matplotlib/.matplotlibrc for example ?



-- 
Fabrice Silva
[EMAIL PROTECTED]
06.15.59.07.61


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Newbie matplotlib questions re: pie charts and display

2007-08-23 Thread Alex Pounds
On Tue, Aug 21, 2007 at 01:14:44PM +0100, Alex Pounds wrote:
> 4. I need to stick a footnote in the bottom corner of my charts. Can I do
> this natively in matplotlib or will I have to do it with a separate library
> afterwards?

For the sake of others searching the archives, here are the answers I've
found out for myself so far: 

4. You can do this with matplotlib: 
figtext(0.98, 0.05, u'©2007 Alexpounds.com', ha='right')
This puts a copyright notice in the bottom right of a chart. 


> 5. Can I have my xtick labels oriented vertically? 

Yep. Just pass rotation="vertical" in to xticks(). Easy. Though this may
overlap with the figtext above - I haven't got that bit sorted yet...

-- 
Alex Pounds (Creature)  .~. http://www.alexpounds.com/
/V\http://www.ethicsgirls.com/
   // \\
"Variables won't; Constants aren't"   /(   )\
   ^`~'^

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Vertical bar - making the bar fixed width

2007-08-23 Thread Alen Ribic
How do I set my vertical bar to be fixed width? Depending on amount of
data on my x axis, the bars get created accordingly and the width gets
adjusted to fit into the graph. If I have only 2 plots on the x axis
then the 2 bars get stretched across the entire graph. Looks very
ugly.

-Alen

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Looking for a way to save a graph

2007-08-23 Thread Bryan Cole

> > 
> > I am but a humble newbie, but why not simply take your figure
> > object/reference and Pickle it (see
> > http://docs.python.org/lib/module-pickle.html)?
> > 
> 
> Won't work.  Pickling only works for objects that have been designed for 
> it.  Such design is not trivial for extension code, and has not been 
> done for mpl.

I keep coming back to this from time-to-time and have a go a poking
around in the mpl codebase but I've never figured out exactly what state
the matplotlib "Lazy Values" and "BinOps" store. 

If this internal state could be retrieved and then later restored, then
python can pickle the extension objects using the copy-reg module. It
might be enough if methods were added to the BinOp objects to retrieve
internal objects to which they link. You could then recursively walk
through the whole lazy-value tree. To make this work, you would need to
retrieve the underlying C++ objects with it's python wrapper object
intact (i.e. with the same IDs) so that python references to that object
created elsewhere still work.

While the concept of Lazy Values is easy enough to understand,
understanding how and where these objects fit in to the MPL architecture
is hard. I think a little documentation or explanation of this could go
a long way to helping implement this. If I could understand all the
places the Lazy Values are used, I'm keen to attempt the implementation
of pickle-ability. One problem for me is my C++ knowledge is ~ 0.

BC
> 
> Eric
> 
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >>  http://get.splunk.com/



-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] stuck after a mpl_connect - how to disconnect and go on

2007-08-23 Thread Angus McMorland
Hi Eric,

On 23/08/07, Eric Emsellem <[EMAIL PROTECTED]> wrote:
> thanks a lot for this feedback!
>
> Your example is quite nice indeed. However there is something I may not
> have fully understand.
> If I use the example you sketch, I of course need to call the displayer
> class (right?), by doing something like:
>
> test = displayer()
>
> However, then I hit the same problem again: I would need to define ALL
> the commands I wish to go through WITHIN the displayer class (and more
> precisely into the "show_next" function), because any command put after
> the "test = displayer()" would be executed anyway without waiting that I
> finally hit the right mouse button.

I'm not sure why this is a problem. Yes, you need to put all your code
into the callback routines of displayer, but just think of it as
wrapping your program code inside the class. Your __main__ code then
simply becomes test = displayer()... and away you go.

Also, I realised shortly after sending my email that you can of course
do away with the offset class in this example, and put those methods
into the displayer class too, which will make things a little simpler.

> Or is there something I didn't catch which would allow me to go around this?
>
> (what my program is supposed to do at the end is to go through a series
> of (3xdataframes), and for each dataframe in turn, use the "offset"
> trick, then reinitialise everything and start with the next series...
> This seems to imply that I need to specify the full set of commands
> within the displayer class show_next function)
>
> thanks again
>
> Eric

Angus.
-- 
AJC McMorland, PhD Student
Physiology, University of Auckland

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Looking for a way to save a graph

2007-08-23 Thread Eric Firing
Alex Pounds wrote:
> On Thu, August 23, 2007 5:33 pm, David Tremouilles wrote:
>>  I would like to save a matplotlib figure (data, title and axes label,
>> plot properties, ...) to load it later on for modification.  Something
>> like figure.savelall("file.matplot") and later on do a
>> figure.loadall("file.matplot")  using an empty figure.
> 
> I am but a humble newbie, but why not simply take your figure
> object/reference and Pickle it (see
> http://docs.python.org/lib/module-pickle.html)?
> 

Won't work.  Pickling only works for objects that have been designed for 
it.  Such design is not trivial for extension code, and has not been 
done for mpl.

Eric

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Looking for a way to save a graph

2007-08-23 Thread John Hunter
On 8/23/07, Alex Pounds <[EMAIL PROTECTED]> wrote:
> On Thu, August 23, 2007 5:33 pm, David Tremouilles wrote:
> >  I would like to save a matplotlib figure (data, title and axes label,
> > plot properties, ...) to load it later on for modification.  Something
> > like figure.savelall("file.matplot") and later on do a
> > figure.loadall("file.matplot")  using an empty figure.

> I am but a humble newbie, but why not simply take your figure
> object/reference and Pickle it (see
> http://docs.python.org/lib/module-pickle.html)?

Reasonable request, reasonable solution, but alas neither will work.
The mpl extension code doesn't support pickling.

JDH

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Looking for a way to save a graph

2007-08-23 Thread Alex Pounds
On Thu, August 23, 2007 5:33 pm, David Tremouilles wrote:
>  I would like to save a matplotlib figure (data, title and axes label,
> plot properties, ...) to load it later on for modification.  Something
> like figure.savelall("file.matplot") and later on do a
> figure.loadall("file.matplot")  using an empty figure.

I am but a humble newbie, but why not simply take your figure
object/reference and Pickle it (see
http://docs.python.org/lib/module-pickle.html)?

-- 
Alex Pounds (Creature)  .~.   http://www.alexpounds.com/
/V\  http://www.ethicsgirls.com/
   // \\
"Variables won't; Constants aren't"   /(   )\
   ^`~'^


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Looking for a way to save a graph

2007-08-23 Thread David Tremouilles
Hello,

 I would like to save a matplotlib figure (data, title and axes label,
plot properties, ...) to load it later on for modification.  Something
like figure.savelall("file.matplot") and later on do a
figure.loadall("file.matplot")  using an empty figure.

Did somebody already implement such a functionality?
If yes Is it available somewhere or are you eager to share it?

Thanks,

David

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] stuck after a mpl_connect - how to disconnect and go on

2007-08-23 Thread Eric Emsellem
Hi

thanks a lot for this feedback!

Your example is quite nice indeed. However there is something I may not
have fully understand.
If I use the example you sketch, I of course need to call the displayer
class (right?), by doing something like:

test = displayer()

However, then I hit the same problem again: I would need to define ALL
the commands I wish to go through WITHIN the displayer class (and more
precisely into the "show_next" function), because any command put after
the "test = displayer()" would be executed anyway without waiting that I
finally hit the right mouse button.

Or is there something I didn't catch which would allow me to go around this?

(what my program is supposed to do at the end is to go through a series
of (3xdataframes), and for each dataframe in turn, use the "offset"
trick, then reinitialise everything and start with the next series...
This seems to imply that I need to specify the full set of commands
within the displayer class show_next function)

thanks again

Eric

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users