[Matplotlib-users] Two Scales - twinx()

2014-02-23 Thread Stephen George
Hi, I was wanting to use dual scales on my plot and was just running the example code from http://matplotlib.org/examples/api/fahrenheit_celsius_scales.html I subsequently changed the function Tc to read def Tc(Tf): return Tf Fully expecting the two scales to track each other

Re: [Matplotlib-users] Using labels with twinx()

2011-09-28 Thread Stephen George
On 28/09/2011 4:32 PM, Klonuo Umom wrote: Please consider: plot([1, 2, 3, 4], label='line 1') twinx() plot([11, 12, 11, 14], label='line 2') legend() will draw only label for 'line 2' plot([1, 2, 3, 4], label='line 1') legend() twinx() plot([11, 12, 11, 14],

Re: [Matplotlib-users] problem with MPL+py2exe (wx app needs qt?)

2010-09-14 Thread Stephen George
On 14/09/2010 8:18 AM, Carlos Grohmann wrote: Many thanks, that helper. After some more problems with scipy, I got a working EXE. PyQt4 is still in the library, though. Eating almost 15Mb... Now all I have to do is to find out how to remove it.. cheers Carlos Have you read the info

Re: [Matplotlib-users] Win7. Why Don't Matplotlib, ... Show up in Control Panel Add-Remove?

2010-08-08 Thread Stephen George
On 9/08/2010 9:19 AM, Wayne Watson wrote: See Subject. I use matplotlib, scipy, numpy and possibly one other module. If I go to the control panel, I only see numpy listed. Why? I use a search and find only numpy and Python itself. How can matplotlib and scipy be uninstalled? In my Win7

Re: [Matplotlib-users] error: Gtk* backend requires pygtk to be installed

2010-06-24 Thread Stephen George
Hi Mike, I tried to run it on windows. Got error D:\download\pythondemo_axes_grid.py Traceback (most recent call last): File D:\download\python\demo_axes_grid.py, line 2, in module from demo_image import get_demo_image ImportError: No module named demo_image Went looking on examples

[Matplotlib-users] how to stop resize when adding scatter plot?

2010-06-22 Thread Stephen George
Hi, I have an application that draws a line plot of a spectrum. When the spectrum is collected different gains and filters may be used for each data point (which I have also collected). I am looking at artefacts in the spectrum and trying to correlate them with things such as the gain and

Re: [Matplotlib-users] how to stop resize when adding scatter plot?

2010-06-22 Thread Stephen George
However if I am zoomed in on my graph looking at detail, then click the radio button, the scatter plot forces the graph to resize to once again show the overall intial view (zoomed out). Try using: axes.set_autoscale_on(False) Thank you very much, this does exactly what I was

Re: [Matplotlib-users] plotting in a loop

2010-04-20 Thread Stephen George
Hi, Sorry haven't used ipython, so not sure if there is another/better ipython way. Attached is how I solved it in normal python. I added a next line button to the graph, and set the ydata for the line each time the button is pushed. There is a couple of set_ylim lines commented out,

Re: [Matplotlib-users] How to control display precision and style (e.g., %f or %e) of axis tick labels?

2010-02-23 Thread Stephen George
David Goldsmith wrote: I've searched and searched the online docs...please help. DG If I understand your question correctly you probably need to look at http://matplotlib.sourceforge.net/api/ticker_api.html#tick-formatting ax.xaxis.set_major_formatter( xmajorFormatter )

Re: [Matplotlib-users] hoe to update a plot

2010-02-23 Thread Stephen George
C M wrote: On Tue, Feb 23, 2010 at 7:00 PM, Mathew Yeates mat.yea...@gmail.com wrote: Hi I am using gtk and displaying a plot in a FigureCanvas. In response to an event, I want to update the plot with new data. e.g. self.fig = Figure(figsize=(5,5), dpi=100) self.ax =

Re: [Matplotlib-users] gtkagg backend - update behavior question

2009-11-27 Thread Stephen George
Hi Alastair, I don't have clue why yours doesn't work. however I changed the following line in the update function data[20]=data[20]+0.5 to data = np.random.randn(100) And it started updating the display, with new data each update. maybe changing a single point is not seen as a big enough

Re: [Matplotlib-users] matplotlib-0.98.5.3.win32-py2.6.exe (Stephen George)

2009-07-14 Thread Stephen George
Hi Jon, To clarify, I think you need to read Christoph Gohlke original message (7/7/2009) to me to put my response into context: Hi Steve, matplotlib-0.98.5.3.win32-py2.6.exe was compiled without support for GTK. If you don't mind trying, I have a build of the matplotlib trunk available

Re: [Matplotlib-users] One more question regarding to boxplotting

2009-05-12 Thread Stephen George
Why don't you perform a histogram on the data that produced that boxplot, .. seeing the shape of that histogram may answer your own question. Is it skewed or normal distribution? Gökhan SEVER wrote: Hello, I construct my boxplots (shown in this figure:

Re: [Matplotlib-users] dynamically updated plots

2008-07-14 Thread Stephen George
Hi Lubos, Lubos Vrbka wrote: 1. Would it be possible to do only shallow copy of the arrays that are being plotted so that on redrawing the figure, chanes in the datasets would be picked up automatically? If not, is Line2D.set_data(...) the right approach? isn't this the way how the

Re: [Matplotlib-users] Strange Plotting Behavior When Extremely Zoomed

2008-04-27 Thread Stephen George
Hi Sunzen, I also get similar results as you. - always have 'extremely zoomed' means I pick a corner of your staircase, and zoom in on the corner multiple times, each time no bigger than the cross hairs of the cursor. If I don't get the blocked out triangles I get the data changing direction

Re: [Matplotlib-users] Help with matpoltlib

2008-02-28 Thread Stephen George
Hi Olusina, I guess you have specific reason to prefer to use python2.4 and not install matplotlib into python2.5 I also have 2 versions installed on my computer, .. only one will work directly from the command line, the first one found on the path. however whenever I want to run a test

Re: [Matplotlib-users] pylab.save() File Name Syntax

2008-01-31 Thread Stephen George
Hi Rich, bit confused what your asking. are you looking for the pylab API savefig http://matplotlib.sourceforge.net/matplotlib.pyplot.html#-savefig or you asking how to convert your variable+.png into a filename? is your variable a number?, string? for count in range(3): count = count +1

[Matplotlib-users] Adding another control to navigation bar

2007-11-29 Thread Stephen George
I don't know if I dreamed it or was real, but I recall seeing somewhere that it was possible to add a control to the navigation bar, but now cannot seem to find any reference to this. Is is possible to add a control to the navigation bar? (I want to add a drop down box) I am using pyGtk, can

Re: [Matplotlib-users] two distributions on a histogram

2007-11-11 Thread Stephen George
See below for Antonio Gonzalez solution (last year) that I have started using and happy with it Neil M wrote: Hello, Is it possible to plot two histograms on the same axis without having the bars on top of each other. I'm trying to determine how similar a distribution of activity is

Re: [Matplotlib-users] Small negative values causing graph breaks?

2007-10-11 Thread Stephen George
Hi Joshua, As you can see from the attached graph, there is a break the in graph somewhere around 7 AM or so. This is the data I am graphing for that red line: 2007-10-09 00:00:00,0.015 2007-10-09 01:00:00,0.015 2007-10-09 02:00:00,0.014 2007-10-09 03:00:00,0.012 2007-10-09 04:00:00,0.008

Re: [Matplotlib-users] Plotting filled circles

2007-07-01 Thread Stephen George
Hi, being a newbie myself, .. I don't know if I'm misguiding you. But do wonder if you looked at the scatter command see scatter_demo2.py on http://matplotlib.sourceforge.net/screenshots.html for an example It *seems* like it already does what you are trying to do?, maybe I'm missing something

[Matplotlib-users] Saving image on Windows problem

2007-01-30 Thread Stephen George
Has anyone else noticed a problem when saving an image (png) on windows. Hard to describe, .. but it seems that if there is lots of data to plot and window size too big, or maximized, it cannot save the full plot data stopping half way. (plot look fine on window). Interesting reducing

[Matplotlib-users] Changing markers on line

2006-11-21 Thread Stephen George
Have a lot of data, and when looking at full view I'd like no markers, but when zoom in to see individual points I'd like to place markers on the graph. Planing on attaching some code to events to toggle markers on my line. Is there a way to change the markers a line uses after it has been

Re: [Matplotlib-users] axis number presentation

2006-11-21 Thread Stephen George
Thank you Pierre, I've taken a while to get around to it, but this code worked a treat, and taught me a little about how I can override things in matplotlib Thanks Steve Pierre GM wrote: One thing I cannot work out is the axis number presentation. Cannot find any documentation about how to