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 perfectly
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], la
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 rea
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
Hi Mike,
I tried to run it on windows.
Got error
D:\download\python>demo_axes_grid.py
Traceback (most recent call last):
File "D:\download\python\demo_axes_grid.py", line 2, in
from demo_image import get_demo_image
ImportError: No module named demo_image
Went looking on examples page an
>> 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 w
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 fi
On 23/04/2010 10:30 AM, williamol...@comcast.net wrote:
I use pylab.plot(x,y) for exploring or debugging some functions or
subroutines.
I would like to cycle through 2 or more plot windows, in a simple way
that won't force me to entangle the code in bothersome ways. But I
can't seem to get mor
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, depe
C M wrote:
> On Tue, Feb 23, 2010 at 7:00 PM, Mathew Yeates 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 = fig.add_subplot(111)
>>
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 )
ax.xaxis.set_min
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 chan
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
> availa
Hi Christoph,
Sorry for my delay to get back to you.
The svn version seems to work fine with GTK support, at least my
application had no problems running
The versions I tested with are as follows:
python version: 2.6.0 final 0
numpy version: 1.3.0
matplotlib version: 0.98.6svn
g
Hi,
I just downloaded matplotlib-0.98.5.3.win32-py2.6.exe from sourceforge.
I have an existing Application that works fine with
python : 2.5.4 final 0
pyGTK: 2.12.1
GTK+ : 2.14.7
numpy: 1.2.1
matplotlib : 0.98.5.2
Now I am trying the same App on
python version
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:
> http://img204.imageshack.us/img20
Hi Fernando,
> So, I want to plot a line, but controlling the labels on the tickers
> of the x axis. For instance, if I'm plotting (1000, 5), (2000, 10),
> (3000, 10), the ticks on the x axis might show 1000 2000 3000
>or 1 2 3x1e3. I want to control it, set it to
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 h
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
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 agains
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
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
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
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
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
Hi John,
This is absolutely fantastic, does everything I want, 1/2 hr after
getting to work, I had it up and running in my application.
I do have a question though.
I had not seen mention of SpanSelector before in documentation.
And I do feel confusion about where to find the best documentation
Hi,
I have 2 graphs on one figure.
Graph one - subplot(2,1,1)velocities vs ( Time or SampleIndex)
depending in input args
Graph two - subplot(2,1,2) psd() - power spectrum to help us find the
resonances in velocities
As system goes through a number of different states, the resonances
c
Creating a 'simplified' example (not really) to demonstrate the problem
Zoom in on one of the constant speed movements.(upper graph)
psd (lower graph) will still be showing spectrum of whole data file.
click 'n release any mouse button in the upper graph, and only then
will the lower graph re
I have two plots.
first one is velocity data from servo controller (freq) - plant
reciprocates back and forth so we got turn data in there as well
second one is psd (power spectral density) so we can see where we got
resonances etc.
When we zoom in on on section of first plot (say the forwar
Trying to get resize event to work, but either I don't understand the
definition of when resize_event should work, or it's broken.
for example
===
from matplotlib import pylab , numerix
def GotResizeEvent( event ):
print 'Resize event detected'
def GotDrawEvent( event
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 th
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 t
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
plot
33 matches
Mail list logo