Re: [Matplotlib-users] twin / dual / two axis seems to confuse or break toolbar magnifier

2008-11-04 Thread John Hunter
On Tue, Nov 4, 2008 at 7:29 AM, Michael Droettboom [EMAIL PROTECTED] wrote:
 Can you be more specific about what is going wrong?  The zoom magnifier
 seems to work fine for me with or without twinx, but perhaps we just
 have different expectations of how it works.  Could you perhaps provide
 screenshots?

Note that only one of the two axes can get the events, and that is
determined by the axes zorder.  So if you want ax1 to get the events

  ax1 = fig.add_subplot(111)
  ax1t = ax1.twinx()
  ax1.set_zorder(10)
  ax1t.set_zorder(1)

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Help with MatPlotLib

2008-11-04 Thread Dennis Caceres
Hello,

I am trying to install MatPlotLib and I can't seem to get it to work.
Any help with this problem would be greatly appreciated.

THANKS!


Below are are facts about my system. 



$ uname -a
CYGWIN_NT-5.1 (Prefer not to display) 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 
Cygwin


$ python setup.py build

BUILDING MATPLOTLIB
matplotlib: 0.98.3
python: 2.5.1 (r251:54863, May 18 2007, 16:56:43)  [GCC
3.4.4 (cygming special, gdc 0.12, using dmd 0.125)]
  platform: cygwin

REQUIRED DEPENDENCIES
 numpy: 1.2.1
 freetype2: 9.15.3

OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.12
Traceback (most recent call last):
  File setup.py, line 126, in module
if check_for_tk() or (options['build_tkagg'] is True):
  File /c/MatPlotLib/matplotlib/setupext.py, line 840, in check_for_tk
explanation = add_tk_flags(module)
  File /c/MatPlotLib/matplotlib/setupext.py, line 1084, in add_tk_flags
result = parse_tcl_config(tcl_lib_dir, tk_lib_dir)
  File /c/MatPlotLib/matplotlib/setupext.py, line 946, in parse_tcl_config
tk_lib = tk_vars.get(default, TK_LIB_SPEC)[1:-1].split()[0][2:]
IndexError: list index out of range



dcaceres@(prefer not to display) /c/MatPlotLib/matplotlib
$ gcc --version
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Help with MatPlotLib

2008-11-04 Thread Michael Droettboom
I'm not a regular Windows user myself, but the following threads from a 
couple weeks ago might be relevant:

http://www.nabble.com/Matplotlib-in-Cygwin-td20069116.html

http://www.nabble.com/failure-with-python-setup.py-build-td20092879.html

Please let us know how that works for you.

Developers: Maybe we need to update setupext.py (yet again) for newer 
Cygwins?

Dennis Caceres wrote:
 Hello,

 I am trying to install MatPlotLib and I can't seem to get it to work.
 Any help with this problem would be greatly appreciated.

 THANKS!


 Below are are facts about my system. 



 $ uname -a
 CYGWIN_NT-5.1 (Prefer not to display) 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 
 Cygwin


 $ python setup.py build
 
 BUILDING MATPLOTLIB
 matplotlib: 0.98.3
 python: 2.5.1 (r251:54863, May 18 2007, 16:56:43)  [GCC
 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)]
   platform: cygwin

 REQUIRED DEPENDENCIES
  numpy: 1.2.1
  freetype2: 9.15.3

 OPTIONAL BACKEND DEPENDENCIES
 libpng: 1.2.12
 Traceback (most recent call last):
   File setup.py, line 126, in module
 if check_for_tk() or (options['build_tkagg'] is True):
   File /c/MatPlotLib/matplotlib/setupext.py, line 840, in check_for_tk
 explanation = add_tk_flags(module)
   File /c/MatPlotLib/matplotlib/setupext.py, line 1084, in add_tk_flags
 result = parse_tcl_config(tcl_lib_dir, tk_lib_dir)
   File /c/MatPlotLib/matplotlib/setupext.py, line 946, in parse_tcl_config
 tk_lib = tk_vars.get(default, TK_LIB_SPEC)[1:-1].split()[0][2:]
 IndexError: list index out of range



 dcaceres@(prefer not to display) /c/MatPlotLib/matplotlib
 $ gcc --version
 gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
 Copyright (C) 2004 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] no canvas reinitialization between calls to savefig

2008-11-04 Thread Jae-Joon Lee
 I spent some time working on it and came to the following conclusion:
 if the mpl figure is fully transparent, you see whatever is in the gui
 rendering buffer, which may be unintiialized memory.   In some sense,
 mpl is doing what is asked of it, making a fully transparent figure.
 Clearing the agg buffer is not enough if it is transparent -- you also
 have to init the canvas buffer.  The question is: with what?


I think what we may want is to let the the gui backend do the
compositing, i.e., showing a composite image of the background (of the
canvas widget) and what is in the agg buffer.
In recent version of GTK(2.8 and later), you can do it with cairo.

The attached is a test patch for the gtkagg backend. It includes a
small example which sets an image as a background of the canvas (see
the attached image).

I found this patch make the mpl quite slowed down in my unix box, but
fine in my macbook (my guess is it depends on whether cairo uses the
hardware acceleration or not).

Regards,

-JJ
Index: lib/matplotlib/backends/backend_agg.py
===
--- lib/matplotlib/backends/backend_agg.py	(revision 6360)
+++ lib/matplotlib/backends/backend_agg.py	(working copy)
@@ -280,6 +280,7 @@
 if __debug__: verbose.report('FigureCanvasAgg.draw', 'debug-annoying')
 
 self.renderer = self.get_renderer()
+self.renderer.clear()
 self.figure.draw(self.renderer)
 
 def get_renderer(self):
Index: lib/matplotlib/backends/backend_gtkagg.py
===
--- lib/matplotlib/backends/backend_gtkagg.py	(revision 6360)
+++ lib/matplotlib/backends/backend_gtkagg.py	(working copy)
@@ -10,7 +10,7 @@
 from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\
  show, draw_if_interactive,\
  error_msg_gtk, NavigationToolbar, PIXELS_PER_INCH, backend_version, \
- NavigationToolbar2GTK
+ NavigationToolbar2GTK, GTK_WIDGET_DRAWABLE
 from matplotlib.backends._gtkagg import agg_to_gtk_drawable
 
 
@@ -48,6 +48,11 @@
 filetypes = FigureCanvasGTK.filetypes.copy()
 filetypes.update(FigureCanvasAgg.filetypes)
 
+def __init__(self, *kl, **kw):
+FigureCanvasGTK.__init__(self, *kl, **kw)
+FigureCanvasAgg.__init__(self, *kl, **kw)
+self.set_double_buffered(True)
+
 def configure_event(self, widget, event=None):
 
 if DEBUG: print 'FigureCanvasGTKAgg.configure_event'
@@ -87,6 +92,42 @@
gtk.gdk.RGB_DITHER_NONE, 0, 0)
 if DEBUG: print 'FigureCanvasGTKAgg.render_figure done'
 
+
+def _render_figure(self, pixmap, width, height):
+
+FigureCanvasAgg.draw(self)
+
+buf = self.buffer_rgba(0,0)
+ren = self.get_renderer()
+w = int(ren.width)
+h = int(ren.height)
+
+pixbuf = gtk.gdk.pixbuf_new_from_data(
+buf, gtk.gdk.COLORSPACE_RGB,  True, 8, w, h, w*4)
+self._pixbuf = pixbuf
+
+if DEBUG: print 'FigureCanvasGTKAgg.render_figure done'
+
+def expose_event(self, widget, event):
+Expose_event for all GTK backends. Should not be overridden.
+
+
+if GTK_WIDGET_DRAWABLE(self):
+if self._need_redraw:
+x, y, w, h = self.allocation
+self._render_figure(None, w, h)
+self._need_redraw = False
+
+x, y, w, h = event.area
+cairo_ctx = self.window.cairo_create()
+cairo_ctx.set_source_pixbuf(self._pixbuf, 0., 0.)
+cairo_ctx.rectangle(x, y, w, h)
+cairo_ctx.clip()
+cairo_ctx.paint()
+
+return False  # finish event propagation?
+
+
 def blit(self, bbox=None):
 if DEBUG: print 'FigureCanvasGTKAgg.blit'
 if DEBUG: print 'FigureCanvasGTKAgg.blit', self._pixmap
Index: examples/user_interfaces/embedding_in_gtkagg_w_bg.py
===
--- examples/user_interfaces/embedding_in_gtkagg_w_bg.py	(revision 0)
+++ examples/user_interfaces/embedding_in_gtkagg_w_bg.py	(revision 0)
@@ -0,0 +1,54 @@
+#!/usr/bin/env python
+
+show how to add a matplotlib FigureCanvasGTK or FigureCanvasGTKAgg widget and
+a toolbar to a gtk.Window
+
+import gtk
+
+from matplotlib.figure import Figure
+from numpy import arange, sin, pi
+
+# uncomment to select /GTK/GTKAgg/GTKCairo
+#from matplotlib.backends.backend_gtk import FigureCanvasGTK as FigureCanvas
+from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanvas
+#from matplotlib.backends.backend_gtkcairo import FigureCanvasGTKCairo as FigureCanvas
+
+# or NavigationToolbar for classic
+#from matplotlib.backends.backend_gtk import NavigationToolbar2GTK as NavigationToolbar
+from matplotlib.backends.backend_gtkagg import NavigationToolbar2GTKAgg as NavigationToolbar
+
+
+win = gtk.Window()
+win.connect(destroy, lambda x: gtk.main_quit())

[Matplotlib-users] Testing - my posts aren't showing up on the list

2008-11-04 Thread Joshua J. Kugler
I've sent two messages to this list, and neither have appeared in the 
archives, or come back to me.  Did I use the right combination of words 
to get stopped by a spam filter? :)

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Testing - my posts aren't showing up on the list

2008-11-04 Thread Joshua J. Kugler
On Tuesday 04 November 2008, Joshua J. Kugler said something like:
 I've sent two messages to this list, and neither have appeared in the
 archives, or come back to me.  Did I use the right combination of
 words to get stopped by a spam filter? :)

Sigh, apparently.  I'll trying posting again and see what I can do to 
improve my chances of getting through.

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Testing - my posts aren't showing up on the list

2008-11-04 Thread Michael Droettboom
I don't know if there's any way of knowing from the outside...

You can send your question to me, and I can forward it to the list...  
(Seems silly, but it might work.)

Mike

Joshua J. Kugler wrote:
 I've sent two messages to this list, and neither have appeared in the 
 archives, or come back to me.  Did I use the right combination of words 
 to get stopped by a spam filter? :)

 j

   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Testing - my posts aren't showing up on the list

2008-11-04 Thread Joshua J. Kugler
On Tuesday 04 November 2008, Joshua J. Kugler said something like:
 On Tuesday 04 November 2008, Joshua J. Kugler said something like:
  I've sent two messages to this list, and neither have appeared in
  the archives, or come back to me.  Did I use the right combination
  of words to get stopped by a spam filter? :)

 Sigh, apparently.  I'll trying posting again and see what I can do to
 improve my chances of getting through.

GRR  I tried rewording my post, and it still does not show up on 
the list, nor do I get any e-mail back saying it's rejected, so I don't 
know *why* it's being rejected.  Does anyone know the 
sourceforge black list so I can edit my message to not sue those 
words? :)

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Testing - my posts aren't showing up on the list

2008-11-04 Thread John Hunter
On Tue, Nov 4, 2008 at 2:48 PM, Joshua J. Kugler [EMAIL PROTECTED] wrote:
 I've sent two messages to this list, and neither have appeared in the
 archives, or come back to me.  Did I use the right combination of words
 to get stopped by a spam filter? :)

I have not seen any messages from you in the moderator queue, which is
where the spam shows up.  Not sure what the problem is, but this one
got through :-)

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Setting tick labelsize programatically

2008-11-04 Thread Joshua J. Kugler
[Trying one more time.]

I've read docs, search the list archive, and tried to step through code.  

How can I set things like xtick.labelsize and ytick.labelsize via the 
object oriented interface?  I have a graph object,  and I can't find 
anywhere in the data structure for the completed graph where the tick 
label sizes are stored, nor can I find functions to set them.

Even with lots of stepping through code, I can't find where I would 
manually set the size of the ticks.

I know about matplotlib.rc, and the setting in the config file, but I 
don't want to set things globally, I want to set per graph.

Thanks for any pointers!

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] twin / dual / two axis seems to confuse or break toolbar magnifier

2008-11-04 Thread Michael Droettboom
Can you be more specific about what is going wrong?  The zoom magnifier 
seems to work fine for me with or without twinx, but perhaps we just 
have different expectations of how it works.  Could you perhaps provide 
screenshots?

I'm checking against SVN trunk.  I didn't check against 0.90.1, since it 
would require installing an older version of numpy, and other dependency 
dances etc.  But I'm happy to dig further once I have a better idea of 
what is going wrong for you.

This FAQ explains how to get the version number and other useful 
information for a bug report:

http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html#report-a-problem

Cheers,
Mike

wet_colored)arch wrote:
 I am trying to code an application with two checkboxes, one associated with
 each axis on a simple plot.  I can then turn on and off lines in the plot
 that are scaled either to the left side or right side of the plot.

 This is working fine and patterned after some of the examples from
 matplotlib.

 However, when I use the toolbar feature with the magnifier the scaling is
 not usually correct.  More specifically, if I select an area with the
 magnifier, the next drawing of the information is not scaled right. 
 (ususally it is a smaller subset of the data selected)

 I have confirmed when I run without twinx , the magnifier works fine.

 I also have noticed that when running the example from matplotlib the same
 thing happens. I have searched a bit looking for perhaps a bug or comment in
 forums on how to workaround this or perhaps I have done something wrong, but
 no luck.  Perhaps I don't understand how the magnifier is supposed to work
 but when I disable the twinx capability of my code, things seem to work
 fine.  (I'm still mostly a noob but I am persistent.)

 I believe I have 0.90 or perhaps one earlier.  I wasn't completely sure how
 to check but 0.90 is shown in the __init__.py file.

 I have attached the matplotlib provided example that I feel doesn't work
 right.  I also have a snippet of my code below. (which is structured a bit
 different than the example but when I run identical to the snippet, using
 the structure of my code I get an error due to twinx not being a method of
 subplot - as I recall)

 from two scales  example provided with matplotlib
   

 from pylab import *

 ax1 = subplot(111)
 t = arange(0.01, 10.0, 0.01)
 s1 = exp(t)
 plot(t, s1, 'b-')
 xlabel('time (s)')
 ylabel('exp')


 # turn off the 2nd axes rectangle with frameon kwarg
 ax2 = twinx()
 s2 = sin(2*pi*t)
 plot(t, s2, 'r.')
 ylabel('sin')
 ax2.yaxis.tick_right()
 show()


 snippet from my code 

 self.axL=subplot(132, position=[0.2,0.1,0.6,0.8])
 self.axR=twinx(self.axL)
 self.rax1=subplot(131, position=[0.01, 0.10, 0.14, 0.8])
 self.rax2=subplot(133, position=[0.85, 0.10, 0.14, 0.8])
 
 for key in sorted(dict):
 if dict[key][1]'N':  #~ providing key to allow for skipping
 data set
 visibility=dict[key][2]
 exec(self.l%s, =
 self.ax%s.plot(glbl.fusdata%s,visible=visibility,ls=dict[key][4],color=dict[key][3])%
 (key,dict[key][1],key))
 
   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Setting tick labelsize programatically

2008-11-04 Thread John Hunter
On Tue, Nov 4, 2008 at 3:13 PM, Joshua J. Kugler [EMAIL PROTECTED] wrote:
 [Trying one more time.]

 I've read docs, search the list archive, and tried to step through code.

The docs you are looking for are
http://matplotlib.sourceforge.net/users/artists.html.


 How can I set things like xtick.labelsize and ytick.labelsize via the
 object oriented interface?  I have a graph object,  and I can't find
 anywhere in the data structure for the completed graph where the tick
 label sizes are stored, nor can I find functions to set them.

Here is one way to do it::

for label in ax.get_xticklabels() + ax.get_yticklabels():
   label.set_fontsize(12)

But the artist tutorial above will give you a more in-depth
explanation of the various containers and methods.

JDH

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Setting tick labelsize programatically

2008-11-04 Thread Joshua J. Kugler
On Tuesday 04 November 2008, John Hunter said something like:
 On Tue, Nov 4, 2008 at 3:13 PM, Joshua J. Kugler 
[EMAIL PROTECTED] wrote:
  [Trying one more time.]
 
  I've read docs, search the list archive, and tried to step through
  code.

 The docs you are looking for are
 http://matplotlib.sourceforge.net/users/artists.html.

  How can I set things like xtick.labelsize and ytick.labelsize via
  the object oriented interface?  I have a graph object,  and I can't
  find anywhere in the data structure for the completed graph where
  the tick label sizes are stored, nor can I find functions to set
  them.

 Here is one way to do it::

 for label in ax.get_xticklabels() + ax.get_yticklabels():
label.set_fontsize(12)

 But the artist tutorial above will give you a more in-depth
 explanation of the various containers and methods.

Sigh...how simple.  Thank you very much!

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Testing - my posts aren't showing up on the list

2008-11-04 Thread James Turner
Hello,

I have found that messages sometimes don't show up on these lists if
your options are set not to receive mailings (eg. if you just want to
look for replies in the archive).

James.


Michael Droettboom wrote:
 I don't know if there's any way of knowing from the outside...
 
 You can send your question to me, and I can forward it to the list...  
 (Seems silly, but it might work.)
 
 Mike
 
 Joshua J. Kugler wrote:
 I've sent two messages to this list, and neither have appeared in the 
 archives, or come back to me.  Did I use the right combination of words 
 to get stopped by a spam filter? :)

 j


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Testing - my posts aren't showing up on the list

2008-11-04 Thread Joshua J. Kugler
On Tuesday 04 November 2008, you said something like:
 Hello,

 I have found that messages sometimes don't show up on these lists if
 your options are set not to receive mailings (eg. if you just want to
 look for replies in the archive).

Hmm, well, I do receive mail from that list, so it must be a glitch 
somewhere else, but that is interesting.

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Setting tick labelsize programatically

2008-11-04 Thread Joshua J. Kugler
On Tuesday 04 November 2008, Joshua J. Kugler said something like:
  Here is one way to do it::
 
  for label in ax.get_xticklabels() + ax.get_yticklabels():
 label.set_fontsize(12)
 
  But the artist tutorial above will give you a more in-depth
  explanation of the various containers and methods.

 Sigh...how simple.  Thank you very much!

OK, so it's half working. :)

I have code such as this:

for label in self.main_axes.get_xticklabels():
tick.label.set_fontsize(self.xtick_labelsize)

main_ticks = self.main_axes.get_yticklabels()
sub_ticks = (self.sub_axes.get_yticklabels()
 if hasattr(self.sub_axes, 'get_yticklabels') else  [])
for label in main_ticks + sub_ticks:
label.set_fontsize(self.ytick_labelsize)

'self' is an object that gets turned in to a plot on a figure.
the sub_axes are because we have centigrade on one end of the plot, and 
Fahrenheit on the other end.  The yticklabel code works fine.  The 
xticklabel code has no effect.

The X axis is an AutoDateLocator and apparently set_fontsize isn't 
having an effect with that.  I tried setting the font size even after 
setting the locator, and that doesn't appear to have any effect.  Can 
you point me to the relevant docs on the subject? :)

Thanks!

j

-- 
Joshua Kugler
Part-Time System Admin/Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/  ID 0xDB26D7CE

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] twin / dual / two axis seems to confuse or break toolbar magnifier

2008-11-04 Thread wet_colored)arch


Can you be more specific about what is going wrong?  The zoom magnifier 
seems to work fine for me with or without twinx, but perhaps we just 
have different expectations of how it works.  Could you perhaps provide 
screenshots?

Response
I confirmed it is 0.90.0 (I am running on Windows)
attached is code (which is simply example packaged with matplot lib)

ALSO: 

the default figure: of which I selected the region from 2-4 on the x-axis
for magnifying
the resulting figure from magnifying:  you can see much of the content from
2-4 is missing (I selected the entire y axis with the magnifier) -- the
xaxis is only selecting a subset of the range I chose
the expected figure:  I used the crossed arrows instead of the magnifier to
create a plot figure that roughly mimics what I expected... I expected to
see all data in y from x = 2 to 4

Is my expectation wrong? I expect the x and y axis range selected by the
magnifier tool to be fully represented in the subsequent representation of
the data - it always seems to be subset of the data range chosen.

http://www.nabble.com/file/p20334562/two_scales.py two_scales.py 
http://www.nabble.com/file/p20334562/two_scales_baseline.png
two_scales_baseline.png 
http://www.nabble.com/file/p20334562/two_scales_2to4_concern.png
two_scales_2to4_concern.png 
http://www.nabble.com/file/p20334562/two_scales_2to4_expectation.png
two_scales_2to4_expectation.png 
-- 
View this message in context: 
http://www.nabble.com/twin---dual---two-axis-seems-to-confuse-or-break-toolbar-magnifier-tp20256700p20334562.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users