Yikes, that formatting is almost worse!
On Thu, Mar 26, 2015 at 11:53 AM rogerjames99 ro...@beardandsandals.co.uk
wrote:
Hi Thomas, I posted via nabble. It looks like something stripped the code.
Here is the bit where the axes are set up def setup_axes(self, fig, rect):
With custom locator
Hi Thomas,I posted via nabble. It looks like something stripped the code.Here
is the bit where the axes are set updef setup_axes(self, fig, rect):
With custom locator and formatter.Note that the extreme
values are swapped.transform =
And if I look at this on nabble the code looks fine, it just was not
redndering in inbox. Sorry, the issues is on my end.
On Thu, Mar 26, 2015 at 11:54 AM Thomas Caswell tcasw...@gmail.com wrote:
Yikes, that formatting is almost worse!
On Thu, Mar 26, 2015 at 11:53 AM rogerjames99
Ok the last one got garbled.
My apologies to the list but here is another go.
Hi Thomas,
I posted via nabble. It looks like something stripped the code.
Here is the bit where the axes are set up
def setup_axes(self, fig, rect):
With custom locator and formatter.
Can you include a minimal example of the code you are using (it looks like
you did include code, but it did not come through)? It is very hard to
guess at what is wrong without it.
Tom
On Wed, Mar 25, 2015 at 2:29 PM rogerjames99 ro...@beardandsandals.co.uk
wrote:
Hi,
I am trying to draw a
Hi,
I am trying to draw a polar plot of a sonar scan. The idea being to present
it like a radar display. I have used axisartist to do the ploar plot. This
is working fine but I would like to reset the limits of the radius axis with
each new scan. I have tried a number of ways of doing this
I'm looking for some help understanding how I can add new lines to my
matplotlibrc but I'm struggling to correlate the default matplotlibrc to
the api.
For example if I want to have axis ticks only show up on the bottom and
left axes how would I add that to mapltlotlibrc?
I can do this in my code
many thanks Paul,
this did work:
I uninstalled all python in my computer:
sudo rm -rf python*
sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7
sudo rm -rf /Applications/Python 2.7
and installed python and matplotlib afresh. Numby had been installed
Python 2.7.4
Hi Charles,
I'm sending my reply to the matplotlib-users list - please follow
up there, so that others benefit from your experience, or folks
who have run into the same issue can also pitch in with their
help.
Here's where to go to sign up:
On 2013/04/08 4:13 AM, epi wrote:
Hi All,
i'm new to basemap, truing to learn how to plot vector from a netcdf file
the variables in my file are :
- time
- Significant_height_of_combined_wind_waves_and_swell_surface
- u-component_of_wind_surface
- v-component_of_wind_surface
this is my
Hi List,
I wonder whether anybody has tried to draw the following idea with a sankey
diagram (but if you are aware of another way to draw the following, I am
open to suggestions):
I have several systems which are all linked so that part of the outputs of
each of the systems becomes part of the
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
On 10/08/2012 21:27, Damon McDougall wrote:
[snipped]
Actually, I discovered today that this is possible. You can use step()
to achieve what you want:
http://matplotlib.sourceforge.net/examples/pylab_examples/step_demo.html
Awesome, my question answered before I'd even asked it :)
--
On Fri, Aug 10, 2012 at 02:09:39PM +0530, satish maurya wrote:
Dear All,
I want to stairs plot (similar in matlab) matplotlib
First i want for i data-set then multiple data-set super impose on that.
I attach the figure it's showing velocity-depth stairs plots for
superimpose (like hold on
On Fri, Aug 10, 2012 at 12:47:22PM +0100, Damon McDougall wrote:
On Fri, Aug 10, 2012 at 02:09:39PM +0530, satish maurya wrote:
Dear All,
I want to stairs plot (similar in matlab) matplotlib
First i want for i data-set then multiple data-set super impose on that.
I attach the figure
Hi,
I managed to figure this out. I need to pass an init function to
FuncAnimation. Quoting from the MatPlotLib API documentation:
*init_func* is a function used to draw a clear frame. If not given, the
results of drawing from the first item in the frames sequence will be used.
So just in case
Hi,
I'm trying to learn how to use FuncAnimation. I made some small
modifications to one of the matplotlib examples tried it out, but I
encounter a problem. I'm trying to update a line plot every 1 sec I have
my x-axis limit set to (0,10) initially. When the plot reaches x=10, I
change the
Hi Guys
I am starting to render plots with matplotlib as I learn both python and
this interesting plotting library. I need help with a custom plot for a
problem I am working on. May be there is an inbuilt function already.
Problem:
I am trying to draw a table(rectangle) as a plot with 96
On Tuesday 17 April 2012 12:36 PM, Abhishek Pratap wrote:
Hi Guys
I am starting to render plots with matplotlib as I learn both python
and this interesting plotting library. I need help with a custom plot
for a problem I am working on. May be there is an inbuilt function
already.
Problem:
On Tue, Apr 17, 2012 at 3:16 AM, Sameer Grover sameer.grove...@gmail.comwrote:
On Tuesday 17 April 2012 12:36 PM, Abhishek Pratap wrote:
Hi Guys
I am starting to render plots with matplotlib as I learn both python and
this interesting plotting library. I need help with a custom plot for a
As related to another question(s) I've posted, can someone help with this
custom formatter? This is for use in a FunctionFormatter to be used on the
y axis to format the ticks (in particular, to remove them when not
wanted). Example:
def CustomFormatter(self,y,i):
if y 0:
On Wed, Sep 21, 2011 at 9:28 PM, Benjamin Root ben.r...@ou.edu wrote:
On Wed, Sep 21, 2011 at 2:00 PM, Armando Serrano Lombillo
arser...@gmail.com wrote:
Hello I have a dat set like this one
a=[[x1, y1, cat1], [x2, y2, cat1], ..., [x8, y8, cat1], [x9, y9, cat2],
..., [x34, y34, cat2],
On Wed, Sep 21, 2011 at 2:00 PM, Armando Serrano Lombillo
arser...@gmail.com wrote:
Hello I have a dat set like this one
a=[[x1, y1, cat1], [x2, y2, cat1], ..., [x8, y8, cat1], [x9, y9, cat2],
..., [x34, y34, cat2], [x35, y35, cat3],...]
and I don't know beforehand how many diffferent
A runnable code sample is attached.
I'm trying to plot durations in time (sec to hours) on the y axis such
that if you zoom, it changes the units and axis label appropriately.
When run, it looks right. But, when I zoom on the first point, it is
shown on the y axis at '0.20' minutes. I would
Hi all,
So I tried what was advised to me.
python -c 'import pylab; pylab.plot([4]);'
terminate called after throwing an instance of 'std::exception'
terminate called recursively
Abort
which happens here:
14 agg::trans_affine
15 py_to_agg_transformation_matrix(PyObject* obj, bool errors
Hi,
I didn't get much reply on this issue, so I'm just trying to resurrect
the question.
If there's no easy answer, could someone help me by giving me a
pointer, a method to resolve the problem, or any other quick
advice...?
Thanks much!
On Thu, Mar 10, 2011 at 12:29 AM, Nicolas SCHEFFER
Nicolas SCHEFFER scheffer.nico...@gmail.com writes:
I didn't get much reply on this issue, so I'm just trying to resurrect
the question.
Probably not many devs using Solaris, so no-one has been able to
reproduce this.
#12 0xfd7ff4a22fd8 in py_to_agg_transformation_matrix
(obj=0x774380,
Thanks much for the reply!
I'll try your advice as soon as I can.
BTW, I don't think this is a Solaris-related problem.
If you look at the pointers in my original post, the same error can
happen on other arch (I confess it can be for other reasons though).
-n
On Sun, Mar 13, 2011 at 1:03 PM,
Hi all,
I am stuck on matplotlib generating a segfault when invoking 'plot'.
I've ben trying to solve this problem for a while now but no luck.
I've seen many duplicates of this problem on the web, some with
solutions, some without. The solution must be something more generic
that I'm missing.
Hello
I am using matplotlib 1.0.0 version. and would like to use the imshow() to
display my 2D image [512 X 1024]
so when I use the imshow() command as
imshow(array,origin='lower',interpolation='bilinear')
xlables - [0,100,200,400,500]
ylabels - [0,200,400,600,800,1000]
which is correct as
Hello,
I just upgraded my computer to windows 7. I have everything (python, wxpython,
matplotlib, numpy) running now, but there is an annoying problem that when I
double click on one of my scripts (simple pylab script) it runs creates a
figure and plot then immediately closes... so I don't get
On Tue, Jan 18, 2011 at 10:56 AM, Jeff Peery jeffpe...@seametrics.comwrote:
Hello,
I just upgraded my computer to windows 7. I have everything (python,
wxpython, matplotlib, numpy) running now, but there is an annoying problem
that when I double click on one of my scripts (simple pylab
Sorry for the long delay,
simplest case would be if you can install networkx for py2.6 and the
matplotlib you already have on that py2.6 too.
Other, painful option is to compile matplotlib on WIndows yourself
(but I cannot help with this).
I don't know networkx but I strongly believe that py2.6
Unofficial matplotlib binaries for Python 2.7 for Windows are available
at http://www.lfd.uci.edu/~gohlke/pythonlibs/#matplotlib.
Christoph
On 12/11/2010 11:55 PM, Abdul Rasheed wrote:
hi all
i am new to networkx and Matplotlib. I downloaded networkx1.3 under
python 2.7.1 for windows xp.
hi all
i am new to networkx and Matplotlib. I downloaded networkx1.3 under python
2.7.1 for windows xp. when i tried to install matplotlib, it requires python
2.6 only. What shall i do in this situation? kindly suggest me to have
successful installation of matplotlib. Awaiting for your
I am using matplotlib in wxpython to dynamically add subplots to a figure
and I am using the geometry_change() method to manage how they are shown.
Basically I want all subplot to share the space evenly in one column. With
the simple test code I have pasted in below I have run into some weird
I figured it out, I think. I read the docs (
http://matplotlib.sourceforge.net/api/figure_api.html#matplotlib.figure.Figure.add_axes)
on add_axes and found the part about adding a label to a new axes to force
matplotlib to add a new axes.
So I changed this line from:
subplot =
Any good tutorials or examples that people could point me to on
creating a netcdf file for a grid projected with a stereographic
projection? It's not clear to me how you would create the lat / lon
dimensions.
Thanks,
john
--
Configuration
``
Basemap: 1.0
Matplotlib:
On Fri, Oct 29, 2010 at 7:04 PM, John washa...@gmail.com wrote:
Any good tutorials or examples that people could point me to on
creating a netcdf file for a grid projected with a stereographic
projection? It's not clear to me how you would create the lat / lon
dimensions.
Thanks,
john
On 10/29/10 6:04 PM, John wrote:
Any good tutorials or examples that people could point me to on
creating a netcdf file for a grid projected with a stereographic
projection? It's not clear to me how you would create the lat / lon
dimensions.
Thanks,
john
John: The nice thing about
Friends,
I tried to do a 3d scatter plot. The following is my code. However i dnt
know how to set different colors and marker for x, y and z. Someone kindly
help in doing the same. I tried to give a sequence of colors as
c=['black','red','blue'] but i dnt get what i want.
--
2010/10/19 Waléria Antunes David waleriantu...@gmail.com:
Example: In my graph, the x-axis this way: 0.0 - 0.2 -- 0.4 -
0.6 --- 0.8 --- 1.0 --- 1.2 1.4
I need this way: 0 - 0.5 -- 1.0 - 1.5 2
you might use mpl.ticker.MaxNLocator(4).
Hi,
This example helped me. I have another question. How do I insert the label
as in the example image?: Data from Riess et al (2004)
Thanks,
Waleria.
On Tue, Oct 19, 2010 at 3:50 PM, Paul Hobson pmhob...@gmail.com wrote:
Waléria,
Hopefully this example helps:
# code...
import
Use the legend method of your axes object:
http://matplotlib.sourceforge.net/examples/api/legend_demo.html?highlight=codex%20legend
On Tue, Oct 19, 2010 at 11:15 AM, Waléria Antunes David
waleriantu...@gmail.com wrote:
Hi,
This example helped me. I have another question. How do I insert the
In article a94a7d96-b99a-44d7-b4af-ecc3aff84...@tufts.edu,
Shir Livne shir.li...@tufts.edu wrote:
Hi,
I downloaded the files from the site, but when i type import
matplotlib in python, it responds with ImportError: No module named
matplotlib
Does anyone mind going through the
Hi,
I downloaded the files from the site, but when i type import
matplotlib in python, it responds with ImportError: No module named
matplotlib
Does anyone mind going through the download steps for me? I probably
forgot something simple.
Thanks,
Shir
Todd,
I am glad that worked for you.
I am assuming that you are coming from a Matlab-like experience where every
plot command did produced a graphical result when called? If so, I can see
how this behavior can be a little confusing. I will admit I was a little
confused at first when I started
On 06/08/2010 04:31 AM, Benjamin Root wrote:
Todd,
I am glad that worked for you.
[...]
Anyway, you can always call plt.ion() to turn interactive mode on, and
plt.ioff() to turn it off, or you can use ipython with the -pylab
argument (although I don't know if this is the same as turning
Greetings,
I just installed Python 2.6 (python.org), Numpy 1.4.1, and Matplotlib
0.99.1.2 all on Mac OS X 10.6 in an attempt to learn about scientific
programming in python. Go easy on me since I am a begginer. The Python and
Numpy seem to be working correctly. I can get matplotlib to make
Todd,
I think you are missing a plt.show() at the end of your code. matplotlib,
by default on most systems, does not show a plot until you tell it to using
plt.show() command.
See if that works,
Ben Root
On Mon, Jun 7, 2010 at 7:57 AM, Todd V Rovito rovit...@gmail.com wrote:
Greetings,
Ben,
That worked great, thanks!!! Just a few points. The documentation under
the image tutorial section does not specify that a user has to do
plt.show(), should I submit a bug report or something? I changed my code
and listed it below it works as long as I comment out the plot c section.
In
On Thu, Apr 29, 2010 at 9:00 AM, Geoff Sims geoffrey.s...@gmail.com wrote:
Hi there,
I've been spending hours trying to get the colormaps to work, and I am
still having no luck. All the examples I have found seem to use imshow()
rather than the figure() and plot(). This is a very simple
Thanks Jervis,
I was able to get it to work!
Geoff
On 29 April 2010 09:09, Jervis Whitley jervi...@gmail.com wrote:
On Thu, Apr 29, 2010 at 9:00 AM, Geoff Sims geoffrey.s...@gmail.comwrote:
Hi there,
I've been spending hours trying to get the colormaps to work, and I am
still having
Hi,
I have the exterior shape of a nozzle given by S(x). Now what I want to
do is first reflect it with respect to the y=0 axis (easily achieved by
-S(x) right?) and then map each x node's value of an array (say density)
to a color that would fill the vertical space between S(x) and -S(x). In
Whoops. Give this one a shot:
http://dpaste.com/161847/
-Original Message-
From: Paul Hobson
Sent: Friday, February 19, 2010 2:54 PM
To: matplot...@liste.fastmail.fm; matplotlib-users@lists.sourceforge.net
Subject: RE: [Matplotlib-users] Help needed on specific plot
Hugo,
I
If you're happy with the default formatter behavior (which seems to
match with your #3 requirement), just reuse it.
class MyFormatter(ScalarFormatter):
def __call__(self, val, pos=None):
if val 0:
return ''
else:
return ScalarFormatter.__call__(self, val)
On Sat, Feb 13, 2010 at 3:00 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
If you're happy with the default formatter behavior (which seems to
match with your #3 requirement), just reuse it.
class MyFormatter(ScalarFormatter):
def __call__(self, val, pos=None):
if val 0:
I would like a custom formatter that does 3 things:
1) Blanks out all the values less than 0.
2) Chooses appropriate major ticks when zoomed out.
3) Shows an integer when the zoom scale is revealing multiple
integers, but shows a decimal number when it is just showing within
one integer; i.e. if
Hi Che,
I think turning off autoscaling is what you need:
import matplotlib.pyplot as plt
ax = plt.subplot(111, autoscaley_on=False, ylim=(0, 100))
plt.plot([1, 2], [-40, 40])
plt.show()
Kind regards,
Matthias
On Monday 08 February 2010 20:49:50 C M wrote:
I'd like to set the ticks on the y
I'd like to set the ticks on the y axis such that they do not display
anything lower than 0, even if part of the graph below 0 is visible.
I tried to do this with
ylocator = AutoLocator()
ylocator.view_limits(0, 100)
self.subplot.yaxis.set_major_locator(ylocator)
but it is not changing anything.
Hello everyone,
I am trying to use matplotlib to plot several bar charts inside a for loop
the problem is that I get the first one, but once I close it I cannot plot
anymore.
I still get the window but no image appear and eventually python crashes.
Here is my code:
[code]
def plot(self):
Hello, I'm finding it a little difficult to make a plot with dates:
I have an array with 2 columns. The first one is seconds since a certain
date (let's say 8th September, 8:00am). The second one is the variable I
want to plot. The series spans several months so I want to have the major
ticks be
On Tue, Sep 8, 2009 at 7:45 AM, Armando Serrano Lombillo arser...@gmail.com
wrote:
Hello, I'm finding it a little difficult to make a plot with dates:
I have an array with 2 columns. The first one is seconds since a certain
date (let's say 8th September, 8:00am). The second one is the
Thank you Lee. Thank you Chris and John, the problem is solved.
Chris, we did the method 1) as this was easier for us.
Sameer
On Sun, Aug 23, 2009 at 5:53 PM, John Hunter jdh2...@gmail.com wrote:
On Sun, Aug 23, 2009 at 7:45 PM, Chris Barkerchris.bar...@noaa.gov
wrote:
This is a Bezier
Sameer Regmi wrote:
We are working on plotting mesh (in
hermes2d: http://hpfem.math.unr.edu/projects/hermes2d-new/)
In the hermes2d examples curves are defined as [4, 7, 45] where 4,7
are vertices indices, and 45 is center angle.
1) matplot.path porvides a way to plot curve with three
On Sun, Aug 23, 2009 at 7:45 PM, Chris Barkerchris.bar...@noaa.gov wrote:
This is a Bezier spline -- it can not exactly form a piece of a circle
(though it can get pretty close). You can probably find the math
somewhere for how to approximate a circle, but...
somewhere like ...
On Thu, Aug 20, 2009 at 2:01 AM, Sameer Regmiregm...@gmail.com wrote:
We tried the method 1 but the result was a garbled mesh
Please describe what you did and why the result is wrong.
The method 1 with quadratic bezier curve should be most
straight-forward and easy thing to do. Calculating the
We are working on plotting mesh (in hermes2d:
http://hpfem.math.unr.edu/projects/hermes2d-new/) We created a python
function to plot mesh but initially without curves. Later we also tried to
work on curved elements but we are having some problems.
In the hermes2d examples curves are defined as [4,
Hello,
I am running Matplotlib 0.98.6svn compiled from source on OSX and Sphinx
0.6.2. I am trying the following example to test plot_directive
.. plot::
from numpy import linspace, sin
import matplotlib.pylab as plt
x = linspace(0.01,25, 1)
plt.plot(x, sin(x)/x)
I've been a long time, happy user of MPL, but I'm having some problems
building the latest version (0.98.5.3) on the Mac (python 2.6.2).
The bottom line is that when I build, I get the error message:
ld: in /Developer/SDKs/MacOSX10.4u.sdk/usr/local/lib/libPng.dylib, file is
not o
f required
What does
pkg-config libpng --modversion --libs --cflags
give?
The pkg-config error may actually be a red herring, since matplotlib
will look in /usr/local even if pkg-config fails, and it obviously found
the headers or it wouldn't have gotten to the linking stage. As the
author of the
On Tue, Jun 30, 2009 at 9:14 AM, Michael Droettboom md...@stsci.edu wrote:
What does
pkg-config libpng --modversion --libs --cflags
give?
I guess I don't have pkg-config installed. Is this a requirement? I haven't
had it installed before?
The pkg-config error may actually be a red
On Tue, Jun 30, 2009 at 9:14 AM, Michael Droettboom md...@stsci.edu wrote:
What does
pkg-config libpng --modversion --libs --cflags
give?
The pkg-config error may actually be a red herring, since matplotlib will
look in /usr/local even if pkg-config fails, and it obviously found the
I have a working system now. Here's what I did to fix it.
1. Installed libpng from source
2. Installed freetype2 from source
3. Installed pkg-config from source
4. Installed a new version of the Xcode developer tools for the mac.
During the build I still saw a few 'incompatible architecture'
Tony,
My understanding is that (which might be wrong) drawing collections
involves (at least) 2 transforms. The first transform is (mostly) for
scaling, and the second transform is for offset. And this seems to be
true for PolygonCollection (which scatter creates) as far as I can
see.
On Jun 22, 2009, at 2:57 PM, Jae-Joon Lee wrote:
The easiest solution I can think of is doing some monkey patching.
import matplotlib.pyplot as plt
import matplotlib.transforms as transforms
import numpy as np
fig = plt.figure()
ax = fig.add_subplot(111)
x = [0.25, 0.75, 0.25, 0.75]
y =
I'd like to plot a collection and scale the size of the collection
elements in relation to the data. My guess is that I need to use the
data transformation (ax.transData) since I would like the size of the
collection elements altered when zooming in/out.
Unfortunately, my attempt has led to
I have an intel mac running os 10.4.11. I use python 2.6
I am trying to install matplotlib and I can't figure it out. Can anyone help me?
_
Windows Live™ Hotmail®:…more than just e-mail.
Friends,
In the following. I am not able to understand how this plot.show() works. I
have commented the problem in the following examples.
plt.plot(x,y,'b-')
[matplotlib.lines.Line2D object at 0x9e50ecc]
plt.show() *# shows the plot of x Vs y*
plt.ylim( (1.5,4.5) )
(1.5, 4.5)
plt.show()
On Sat, Mar 28, 2009 at 15:45, Bala subramanian
bala.biophys...@gmail.com wrote:
Friends,
In the following. I am not able to understand how this plot.show() works. I
have commented the problem in the following examples.
You have to call plt.show() only when you want to actually show the
Hello all, I've been trying for days but I can't seem to get the
result I'm looking for. I have a 2d array of type numpy.ndarray
which I'd like to plot as a simple color map. I'd like to plot it in
the upper-lefthand corner of the client area in a wxPython frame. The
plotting needs to be a very
LKeene wrote:
- I have a numpy.ndarray of data with 350 rows and 500 columns. How do
I display it in the upper-left hand corner of the frame client with no
tick marks/labels, etc...just the colormap at screen
coords(0,0)-(349,499) (rows,columns)? Could someone post a few lines
to do
I don't use wx so i'm not sure if this could be helpful, but you may
check the figimage command.
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.figimage
Note that it draws the image directly into the figure, thus no axes is needed.
-JJ
On Wed, Feb 25, 2009 at 6:09
dear list,
can someone tell me why I don't see anything when I run this script?
it is a modified version of the traits example...
I expected to see three plots with one line each...
from enthought.traits.api import HasTraits, Instance, Range, Array,
on_trait_change, Property,cached_property,
Hello,
I am trying to install MatPlotLib and I can't seem to get it to work.
Any help with this problem would be greatly appreciated.
THANKS!
Below are are facts about my system.
$ uname -a
CYGWIN_NT-5.1 (Prefer not to display) 1.5.25(0.156/4/2) 2008-06-12 19:34 i686
Cygwin
$ python
I'm not a regular Windows user myself, but the following threads from a
couple weeks ago might be relevant:
http://www.nabble.com/Matplotlib-in-Cygwin-td20069116.html
http://www.nabble.com/failure-with-python-setup.py-build-td20092879.html
Please let us know how that works for you.
Hello list,
I have generated the following tuples:
(1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2)
((39525.5401, 144.91), (39525.5401, 161.352),
(39874.5, 149.5), (39874.5, 166.142), (40205.0, 150.41),
(40205.0,
167.051999), (40518.4497,
If your first tuple is codes, and second is vertices,
You can do:
from matplotlib import path
from matplotlib import patches
from matplotlib import pyplot as plt
patch = patches.PathPatch(path.Path(vertices, codes))
plt.gca().add_patch(patch)
plt.show()
However... rather than going through
Thanks,
Being a novice, I am trying the first thing in the example
gallery
that caught my eye. Vlines does seem to be a better option. But
what's
puzzling me is why do I get just a plot of the axes with the
following
code? Where are the vertical lines that I am looking for?
from matplotlib
The limits don't get automatically adjusted when using add_patch().
You could do something like:
plt.gca().set_xlim(min([x for x, y in vertices]), max([x for x, y in
vertices]))
plt.gca().set_ylim(min([y for x, y in vertices]), max([y for x, y in
vertices]))
Again, vlines will do all this for
Thanks,
vlines is definitely the better option. By the way, I am using
the
Enthought python distribution for Windows. I could not get the
desired
output from the ipython -pylab shell. But the same code when run
in
SciTe and IDLE gave the desired output.
On Thu, 30 Oct 2008 Michael
On Wed, Sep 10, 2008 at 2:55 PM, Samir Wadhawan [EMAIL PROTECTED] wrote:
Hi,
I am trying to draw a rectangle of a fixed size and them put a lable/text on
it. However if the text is too long, it goes out of bounds. Is there a way I
restrict the text within the rectangle margins.
would it
Hello all, my first post here.
I am moving from using scilab to Pylab, can anyone tell me why the two
following snippets of code produce very different results? BTW. The scilab
code produces the expected result.
Scilab:
Lx=1;
Ly=1;
n=2;
m=2;
f=100;
w=2*%pi*f;
t=1;
A=2;
Kx=n*%pi/Lx;
On Fri, Jul 25, 2008 at 10:22 AM, Peter Wesbdell
[EMAIL PROTECTED] wrote:
Hello all, my first post here.
I am moving from using scilab to Pylab, can anyone tell me why the two
following snippets of code produce very different results? BTW. The scilab
code produces the expected result.
I
Hi Gideon,
On Wednesday 02 July 2008 11:34:46 am Gideon Simpson wrote:
So no one else has seen this bug? I'm on an OS X 10.5.4 machine with
fink python 2.5.2 and associated backend packages. i'm using my own
builds of numpy/scipy and matplotlib.
-gideon
(Please don't top post, it makes it
In lib/matplotlib/__init__.py, set NEWCONFIG=False and reinstall.
On Tuesday 01 July 2008 00:02:51 Gideon Simpson wrote:
Just tried the 0.98.2, and am still getting:
help modules
Please wait a moment while I gather a list of all available modules...
Traceback (most recent call last):
It's already set to False
I've completely blown away my installation, including removing
~/.matplotlib, and this problem is still showing up.
-gideon
On Jul 1, 2008, at 7:20 AM, Darren Dale wrote:
In lib/matplotlib/__init__.py, set NEWCONFIG=False and reinstall.
On Tuesday 01 July 2008
On Tue, Jul 1, 2008 at 8:13 AM, Gideon Simpson [EMAIL PROTECTED] wrote:
It's already set to False
I've completely blown away my installation, including removing
~/.matplotlib, and this problem is still showing up.
-gideon
Please run a test pylab script with --verbose-debug and post the
[EMAIL PROTECTED] python simple_plot.py --verbose-debug run.out
$HOME=/Users/gideon
CONFIGDIR=/Users/gideon/.matplotlib
matplotlib data path /opt/lib/python2.5/site-packages/matplotlib/mpl-
data
loaded rc file /opt/lib/python2.5/site-packages/matplotlib/mpl-data/
matplotlibrc
matplotlib version
On Tue, Jul 1, 2008 at 8:22 AM, Gideon Simpson [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] python simple_plot.py --verbose-debug run.out
$HOME=/Users/gideon
CONFIGDIR=/Users/gideon/.matplotlib
matplotlib data path /opt/lib/python2.5/site-packages/matplotlib/mpl-
data
loaded rc file
1 - 100 of 136 matches
Mail list logo