[Matplotlib-users] Getting GtkAgg graphs to use GTK theme

2011-04-26 Thread Jason Heeris
Hi, I'm using the FigureCanvasGtkAgg as my canvas for graphs, but I notice that the background colour of the canvas does not match that for the rest of my application, and neither does the font. Is there a simple way to get my graphs to respect the user selected GTK theme? I'm using Debian

Re: [Matplotlib-users] Crash using twin axis label with PyGTK

2011-04-22 Thread Jason Heeris
On 22 April 2011 03:56, Paul Ivanov pivanov...@gmail.com wrote: Thanks for the report, Jason. It's a bug - could you please file a bug report, so we can keep track of it? Will do, thanks for the workarounds :) or if it's an option, use gtkagg, which doesn't suffer from the crash.  from

[Matplotlib-users] Crash using twin axis label with PyGTK

2011-04-20 Thread Jason Heeris
I'm playing around with using Matplotlib in my PyGTK app, and keep triggering a crash. I've narrowed it down to this bit of code: import pygtk import gtk from matplotlib.backends.backend_gtk import FigureCanvasGTK from matplotlib.figure import Figure def TestGraph(one, two, three):

Re: [Matplotlib-users] figimage over plot?

2009-12-07 Thread Jason Heeris
2009/12/1 John Hunter jdh2...@gmail.com: Some of this code is particularly tricky and difficult to get right across use cases (eg composite figimages) and this is exacerbated by the fact that this part of the codebase is lightly used.  So testing will be helpful.  I'm also posting an svn diff

[Matplotlib-users] figimage over plot?

2009-11-30 Thread Jason Heeris
Hi, Is it at all possible to have figimage draw the image OVER the top of the plot area? Currently I can only get it to draw underneath — even if I set the frame alpha to zero, it is obscured by the grid. This can be seen from the test code below: testplot.py #!/usr/bin/python import

Re: [Matplotlib-users] Engineering prefixed units in tick labels

2009-11-24 Thread Jason Heeris
Hi, 2009/11/18 Jason Heeris jason.hee...@gmail.com: In gnuplot, I can do the following: set format x %.0s %cHz ...and this will set the x-axis labels (on a semilogx style plot) to be 10 Hz, 100 Hz, 1 kHz, 10 kHz, etc. I ended up implementing this myself, it wasn't too hard. I've attached

[Matplotlib-users] Engineering prefixed units in tick labels

2009-11-17 Thread Jason Heeris
In gnuplot, I can do the following: set format x %.0s %cHz ...and this will set the x-axis labels (on a semilogx style plot) to be 10 Hz, 100 Hz, 1 kHz, 10 kHz, etc. Is there an easy way to do this in matplotlib? I spent a while in the matplotlib.ticker docs, but couldn't find anything.

[Matplotlib-users] Embed logo in plot at actual size

2009-11-16 Thread Jason Heeris
Hi, I'd like to know if it's possible to do something like this in matplotlib: I want to create a 2D plot with legend, output as PNG. I also want to embed a logo in it, in the top right corner of the plotting area. If the original logo image is a 40px by 40px PNG, I want it to appear at that

Re: [Matplotlib-users] Embed logo in plot at actual size

2009-11-16 Thread Jason Heeris
John Hunter wrote: See http://matplotlib.sourceforge.net/examples/api/watermark_image.html for an example of embedding a watermark image in mpl. To compute figure size, multiply the DPI setting by the figure dimensions in inches: This is a good place to start, so thanks :) I'll