Re: [Matplotlib-users] 3D curve and errors in axes3d

2007-01-20 Thread Karol Tarcak
Hi,

the same problem occurred, when I also tried to plot some chaos systems
the solution I found (and works just fine) is to comment axes.py:2131
I didn't send a patch, 'cos I'm not sure that it wasn't really an
common bug (I played with my overall python distribution)

some OT:
1) trajectories -> you could use pydoc numpy.hsplit
2) IMHO to plot chaotic behaviour with iterations over 500k the matplotlib on
an ordinary computer is a little bit slow compared to creating a data
file and using gnuplot ...

Karol


On Fri, Jan 12, 2007 at 11:17:30AM +0100, Mico Filós wrote:
> Hi all
> 
> I am trying to plot the trajectory of the Lorenz system with the axes3d.py
> module (version 0.87.7). The code is the following:
> 
...
> 
> I get however some errors related with the autoscale_view() method (see 
> below).
> I have two questions: Is plot3D the correct choice for plotting a 3D
> curve? In that case, is there any way to fix these errors?
> 
> Thanks a lot for your help and for making matplotlib possible,
> 
> dani
> 
> Errors (pdb output):
> 
> lorenz.py
> ---> 42 plot3D(x,y,z)
> 
> /usr/lib/python2.4/site-packages/matplotlib/axes3d.py in plot3D(self,
> xs, ys, zs, *args, **kwargs)
> 488 def plot3D(self, xs, ys, zs, *args, **kwargs):
> 489 had_data = self.has_data()
> --> 490 lines = Axes.plot(self, xs,ys, *args, **kwargs)
> 491 if len(lines)==1:
> 492 line = lines[0]
> 
> /usr/lib/python2.4/site-packages/matplotlib/axes.py in plot(self,
> *args, **kwargs)
>2129 lines = [line for line in lines] # consume the generator
>2130
> -> 2131 self.autoscale_view(scalex=scalex, scaley=scaley)
>2132 return lines
> 
> TypeError: autoscale_view() got an unexpected keyword argument 'scalex'
> > /usr/lib/python2.4/site-packages/matplotlib/axes.py(2131)plot()
>2130
> -> 2131 self.autoscale_view(scalex=scalex, scaley=scaley)
>2132 return lines
> 

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] bar plot with different filling patterns

2007-01-20 Thread Francesco Davide Calabrese

Hi,

the following simple code (in Matlab syntax):

x1 = [5, 6]
y1 = [3, 2]
bar([1,2], [x1; y1])

produces a bar plot where two of the bars have a color (let's say red) and
the two other bars have another color (let's say blue). I'd like to know
whether it's possible in matplotlib to plot the bars not simply with a
different color but with a different filling pattern. So, for example, the
blue bars filled with vertical lines (or something else) and the red bars
filled with horizontal lines (or again something else).
Please, note that I'm not talking about the borders of the bars. The reason
why I need this feature is that I have to clearly distinguish the bars also
when they are plotted in black and white, because many publications can't be
done in colors.

Any help will be very appreciated.
Thanks and regards
Francesco
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users