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
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],
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
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\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
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
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
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,
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 )
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 =
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
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
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:
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
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
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,0.008
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
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
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
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
24 matches
Mail list logo