[Matplotlib-users] Matplotlib navigation toolbar, save image & image text

2012-09-06 Thread Jon Roadley-Battin
Good morning, I have an odd problem with saving plot images via the navigation bar (unsure if it is unique to the navigation bar) if I have added custom text. BACKGROUND. I have a python gui which is used to connect to some hardware as a diagnosis tool. Its a pyGTK program and on one ui tab there

[Matplotlib-users] subscript size different than in LaTeX document

2012-09-06 Thread Mogliii
Hi, I am preparing figures with the following matplotlib preamble: plt.rc('font', **{'family':'serif', 'serif':['Computer Modern Roman'], 'monospace':['Computer Modern Typewriter']}) params = {'backend': 'ps', 'text.latex.preamble': [r"\usepackage{upgreek}",

Re: [Matplotlib-users] type error with python 3.2 and version 1.1.1 of matplotlib (numpy error)

2012-09-06 Thread Benjamin Root
On Thu, Sep 6, 2012 at 2:24 AM, Eric Firing wrote: > On 2012/09/05 6:17 PM, Paul Tremblay wrote: > > Hmm. I found that mpl handled my datetime objects just fine: > > Right, mpl has handled python datetime objects for a long time, but the > numpy array with a datetime dtype is a new and different

Re: [Matplotlib-users] Matplotlib navigation toolbar, save image & image text

2012-09-06 Thread Benjamin Root
On Thu, Sep 6, 2012 at 5:29 AM, Jon Roadley-Battin < jon.roadleybat...@gmail.com> wrote: > Good morning, > > I have an odd problem with saving plot images via the navigation bar > (unsure if it is unique to the navigation bar) if I have added custom > text. > > BACKGROUND. > I have a python gui wh

Re: [Matplotlib-users] subscript size different than in LaTeX document

2012-09-06 Thread Benjamin Root
On Thu, Sep 6, 2012 at 6:54 AM, Mogliii wrote: > Hi, > > I am preparing figures with the following matplotlib preamble: > > plt.rc('font', **{'family':'serif', 'serif':['Computer Modern Roman'], > 'monospace':['Computer Modern Typewriter']}) > params = {'backend': 'ps', >

Re: [Matplotlib-users] Matplotlib navigation toolbar, save image & image text

2012-09-06 Thread Jon Roadley-Battin
On 6 September 2012 14:20, Benjamin Root wrote: > > > On Thu, Sep 6, 2012 at 5:29 AM, Jon Roadley-Battin > wrote: >> >> Good morning, >> >> I have an odd problem with saving plot images via the navigation bar >> (unsure if it is unique to the navigation bar) if I have added custom >> text. >> >>

[Matplotlib-users] help with colorbar

2012-09-06 Thread Erika Montani
Hello everyone, I have a problem with a colorbar: I have a stackedbar and a colorbar that I want to create or delete by clicking on a button.. but when the colorbar is deleted I want to change the dimension of the axes, resizing it even in the place occupied by the colorbar.. I need to create t

[Matplotlib-users] SyntaxError: matplotlib python3 install problem

2012-09-06 Thread James Morrison
Hi, I downloaded a zip from the master on the github matplotlib repository, when I run: python3 setup.py install I get several 'SyntaxError: invalid syntax' errors which appear to highlight quotes ... byte-compiling /usr/local/lib/python3.2/site-packages/matplotlib/sphinxext/plot_directive.py to

Re: [Matplotlib-users] subscript size different than in LaTeX document

2012-09-06 Thread mogliii
On 06/09/2012 14:49, Benjamin Root wrote: On Thu, Sep 6, 2012 at 6:54 AM, Mogliii wrote: Hi, I am preparing figures with the following matplotlib preamble:

Re: [Matplotlib-users] SyntaxError: matplotlib python3 install problem

2012-09-06 Thread Paul Tremblay
I build from github. On Thu, Sep 6, 2012 at 10:35 AM, James Morrison wrote: > Hi, I downloaded a zip from the master on the github matplotlib > repository, when I run: python3 setup.py install > > I get several 'SyntaxError: invalid syntax' errors which appear to > highlight quotes > ... > > byt

Re: [Matplotlib-users] Matplotlib navigation toolbar, save image & image text

2012-09-06 Thread Jon Roadley-Battin
On 6 September 2012 14:55, Jon Roadley-Battin wrote: > On 6 September 2012 14:20, Benjamin Root wrote: >> >> >> On Thu, Sep 6, 2012 at 5:29 AM, Jon Roadley-Battin >> wrote: >>> >>> Good morning, >>> >>> I have an odd problem with saving plot images via the navigation bar >>> (unsure if it is uni

Re: [Matplotlib-users] Matplotlib navigation toolbar, save image & image text

2012-09-06 Thread Benjamin Root
On Thu, Sep 6, 2012 at 4:37 PM, Jon Roadley-Battin < jon.roadleybat...@gmail.com> wrote: > On 6 September 2012 14:55, Jon Roadley-Battin > wrote: > > On 6 September 2012 14:20, Benjamin Root wrote: > >> > >> > >> On Thu, Sep 6, 2012 at 5:29 AM, Jon Roadley-Battin > >> wrote: > >>> > >>> Good mo

Re: [Matplotlib-users] Matplotlib navigation toolbar, save image & image text

2012-09-06 Thread Jon Roadley-Battin
Thats the plan. The problem is clicking on a plot calls both onpick and onpress (hence the additional fig.canvas.draw() to work around this). ill put a flag in and do an if/else on that as well -- Live Security Virtual Co

[Matplotlib-users] Rectangle Bug

2012-09-06 Thread jonasr
Hello, i spotted a bug in the Rectangle function when plotting with multiple subplot, here is a source code example: #!/usr/bin/env python # -*- coding: utf-8 -*- from matplotlib.pyplot import * from numpy import * import sys, os def main(): f, axs = subplots(1,2) x=ar

Re: [Matplotlib-users] Using the lasso tool when file is not main

2012-09-06 Thread Mark Budde
On closer inspection the problem isn't calling it from another file, it is calling it from wxpython. Not exactly sure how to copy code... lasso_test.py - from matplotlib.widgets import Lasso from matplotlib.nxutils import points_inside_poly from matplotlib.colors import colorConverter from mat

Re: [Matplotlib-users] Rectangle Bug

2012-09-06 Thread Benjamin Root
On Thursday, September 6, 2012, jonasr wrote: > Hello, > > i spotted a bug in the Rectangle function when plotting with multiple > subplot, here is a source code example: > > #!/usr/bin/env python > # -*- coding: utf-8 -*- > > from matplotlib.pyplot import * > from numpy import * > import sys, os

Re: [Matplotlib-users] Rectangle Bug

2012-09-06 Thread jonasr
That seems to work, thank you. I would have thought that the add_patch function creates two seperate objects independent of the defined Rectangle. greets jonas -- View this message in context: http://matplotlib.1069221.n5.nabble.com/Rectangle-Bug-tp38825p38828.html Sent from the matplotlib -

Re: [Matplotlib-users] Rectangle Bug

2012-09-06 Thread Eric Firing
On 2012/09/06 8:35 PM, jonasr wrote: > That seems to work, thank you. > > I would have thought that the add_patch function creates two seperate > objects independent of the defined Rectangle. add_patch doesn't create any objects; it just attaches the axes to the patch in both directions: a refere