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 size
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 :)
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
Hi,
2009/11/18 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.
I ende
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 n
2009/12/1 John Hunter :
> 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 for other devs
Hi,
Is it possible to right align the text and line samples in a legend box?
That is, instead of:
--- First plot
--- Second plot
...you get:
First plot ---
Second plot ---
(with a fixed width font, that last one displays the right edges of
the text perfectly aligned).
Cheers,
Jason
-
2009/12/9 Jae-Joon Lee :
> vp = leg._legend_box._children[-1]._children[0]
> for c in vp._children:
>c._children.reverse()
> vp.align="right"
That's perfect, thank you very much :)
— Jason
--
Return on Information:
G
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):
figu
On 22 April 2011 03:56, Paul Ivanov 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.backends.
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 Squeez
11 matches
Mail list logo