Re: [Matplotlib-users] mplot3D plot_surface colors

2009-08-26 Thread Nicolas Bigaouette
Its great news that the 3D is receiving more polish :)

After reading on wikipedia, wouldn't it be nicier to have Phong
reflection[1] instead of Gouraud?

Maybe it would be too hard, as the Gouraud seems to be implemented directly
in Agg (from what others just said...)

Anyway, just a suggestion ;)


[1] http://en.wikipedia.org/wiki/Phong_reflection_model


2009/8/26 Eric Firing 

> Reinier Heeres wrote:
> > Hi JJ,
> >
> > Thanks for the examples! I indeed suspected the anti-aliasing as well.
> > I'll include an option for linecolors = facecolors soon (probably this
> > weekend); it seems to be a good solution.
>
> No, not in general.  There are two problems: it distorts the sizes and
> positions of the patches, very slightly, but enough that it might be a
> problem in some applications; and it does not work with alpha != 1.
>
> Eric
>
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib on mac os x question

2009-08-26 Thread Russell E. Owen
A few things:
- What python and matplotlib are you using? I recommend Mac Python from 
python.org (use the binary installer) and the Mac binary installer for 
matplotlib.

- Note that matplotlib 0.99.0 is current. I suggest you upgrade.

- If you are using TkAgg (as seems likely), I'm not sure how well it 
plays with IDLE. I suggest you try the same example from the command 
line (Terminal application).

- What is your default backend? The normal Mac binary matplotlib uses 
TkAgg, which is a good choice in this case. But if you build from source 
the default is Agg, which is probably not what you want. You can set the 
default explicitly by editing .matplotlib/matplotlibrc (which has 
probably appeared now that you've run matplotlib once).

Here's a slightly shorter example (I confess I'm not familiar with 
matplotlib.pyplot so I hope this is not deprecated):
import pylab
pylab.plot([1, 2, 3])
pylab.show()

-- Russell

In article <426212.49374...@web110309.mail.gq1.yahoo.com>,
 Walid Majid  wrote:

> Hi,
> 
> I am new to matplotlib and having trouble running a simple example, which I 
> found on one of the tutorial pages:
> 
> import matplotlib.pyplot as plt
> plt.plot([1,2,3])
> plt.ylabel('some numbers')
> plt.show()
> 
> The problem I encounter is that no plot actually shows up when I run the 
> above sequence on my idle session. 
> I am running on Mac OS X 10.5.6 and if anyone can give me some help, I would 
> appreciate it.  
> 
> Python: 2.5.4
> idle: 1.2.4
> matplotlib: 0.98.5.3
> 
> WM


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] display pixels values on the backends

2009-08-26 Thread Xavier Gnata

>> Hi,
>>
>> I have already asked about that but I'm back once again :)
>>
>> The way I use matplotlib may be a corner case:
>> I'm often looking at large (4k x 4k) images and I do want to see the
>> pixels values moving the mouse over the display.
>> imshow does a great job but all the backend only display "x= y=".
>> I would love to see "x= y= Z=" (or "value="...call it the way you want ;))
>>
>> What is the best way to do that?
>> imshow is great because there is nothing to connect to see x and y
>> values on the backend.
>> I need to code something as simple as imshow to get also the pixel values.
>> 
>
> The easiest way I can think of is to override Axes.format_coord
> method.  A pseudo code might look like below
>
> def report_pixel(x, y):
># get the pixel value
>v = get_pixel_value_of_your_image(x,y)
>
>return "x=%f y=%f value=%f" % (x, y, v)
>
> ax = gca()
> ax.format_coord = report_pixel
>
> The code will become more complicated if you want to support multiple images.
> This solution is far from elegant, but maybe the easiest one.
>
> -JJ
>
>   
>> Is there really on way to get that as a new option in imshow? at least
>> in one of the backend (as a starting point)
>>
>> Best Regards,
>> Xavier
>> 
Thanks it does work but I still wonder why it is not an option in imshow

Xavier

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] assign pre-existing toolbar to new canvas

2009-08-26 Thread dek

I made a toolbar in a figure originally tied to a canvas via wx backend
means. I cleared the figure, assigned a new canvas, and want to assign the
same toolbar to it. Recreating the toolbar and setting it in wx caused odd
display transition (it was slow I suppose?).

I've been able to to get this mostly to work by simply using:

self.toolbar.canvas = self.canvas
self.toolbar._idDrag=self.canvas.mpl_connect('motion_notify_event',\
self.toolbar.mouse_move)

This works so long as a toolbar button isn't pressed originally upon putting
in a new canvas, in which case the user would have to repress the previously
pressed button to make it work.
Any ideas on what I can do?

-- 
View this message in context: 
http://www.nabble.com/assign-pre-existing-toolbar-to-new-canvas-tp25157107p25157107.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] mplot3D plot_surface colors

2009-08-26 Thread Eric Firing
Reinier Heeres wrote:
> Hi JJ,
> 
> Thanks for the examples! I indeed suspected the anti-aliasing as well.
> I'll include an option for linecolors = facecolors soon (probably this
> weekend); it seems to be a good solution.

No, not in general.  There are two problems: it distorts the sizes and 
positions of the patches, very slightly, but enough that it might be a 
problem in some applications; and it does not work with alpha != 1.

Eric

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] mplot3D plot_surface colors

2009-08-26 Thread Michael Droettboom
Jae-Joon Lee wrote:
> On Wed, Aug 26, 2009 at 6:22 AM, German Ocampo wrote:
>   
>> Hello
>>
>> Are there some way to take out the gridlines from a surface in mplot3D
>> and get a smooth colour change?
>>
>> 
> Micheal,
> If my understanding is correct, we will see this artifacts even with
> the Gouraud shading. What do you think?
>   
The Agg Gouraud function deals with these artifacts by oversizing the 
area by half a pixel, which is more or less equivalent to what the 
"edgecolor == facecolor" trick does, except with Gouraud shading the 
edgecolor is not constant, but interpolated.  So, no, the artifacts will 
not be there.  There are other inherent artifacts related to the 
triangulation itself, of course ;)

Mike

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Problem with zoom/pan in matplot NavigationToolbar

2009-08-26 Thread Ignacio Arriaga Sánchez
I have a problem with zoom/pan in matplot NavigationToolbar. I am
using networkx to generate graphs and it's  interface to matplot to
draw it. When I use zoom/pan with the NavigationToolbar, the edges and
the labels don't resize. I don't know if this is a networkx or a
matplotlib problem. This is my source code:



import sys, os, random
from PyQt4 import QtGui, QtCore

from numpy import arange, sin, pi
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas

from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg
as NavigationToolbar
from matplotlib.figure import Figure
import networkx as nx

progname = os.path.basename(sys.argv[0])
progversion = "0.1"

class MyMplCanvas(FigureCanvas):
"""Ultimately, this is a QWidget (as well as a FigureCanvasAgg, etc.)."""
def __init__(self, parent=None, width=5, height=4, dpi=100):
fig = Figure(figsize=(width, height), dpi=dpi)

self.axes = fig.add_subplot(111)
self.axes.set_navigate(True)
# We want the axes cleared every time plot() is called
self.axes.hold(False)

self.compute_initial_figure()

#
FigureCanvas.__init__(self, fig)
self.setParent(parent)

FigureCanvas.setSizePolicy(self,
   QtGui.QSizePolicy.Expanding,
   QtGui.QSizePolicy.Expanding)
FigureCanvas.updateGeometry(self)

def compute_initial_figure(self):
pass

class MyStaticMplCanvas(MyMplCanvas):
"""Simple canvas with a sine plot."""

def __init__(self,*args,**kwargs):
MyMplCanvas.__init__(self,*args,**kwargs)
self.mpl_connect('pick_event',self.onpick)



def compute_initial_figure(self):
G=nx.star_graph(20)
pos=nx.graphviz_layout(G)
nodes = nx.draw_networkx_nodes(G,pos,ax=self.axes)
print nodes
nodes.set_picker(True)
edges = nx.draw_networkx_edges(G,pos,ax=self.axes)
self._labels = range(len(G.nodes()))
labels=dict(zip(self._labels,self._labels))
nx.draw_networkx_labels(G, pos, ax=self.axes,labels=labels)




def onpick(self,event):
ind=event.ind[0]
print self._labels[ind]
return True

class ApplicationWindow(QtGui.QMainWindow):
def __init__(self):
QtGui.QMainWindow.__init__(self)
self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
self.setWindowTitle("application main window")

self.file_menu = QtGui.QMenu('&File', self)
self.file_menu.addAction('&Quit', self.fileQuit,
 QtCore.Qt.CTRL + QtCore.Qt.Key_Q)
self.menuBar().addMenu(self.file_menu)

self.help_menu = QtGui.QMenu('&Help', self)
self.menuBar().addSeparator()
self.menuBar().addMenu(self.help_menu)

self.help_menu.addAction('&About', self.about)

self.main_widget = QtGui.QWidget(self)

l = QtGui.QVBoxLayout(self.main_widget)
sc = MyStaticMplCanvas(self.main_widget, width=5, height=3, dpi=100)

l.addWidget(sc)

bar = NavigationToolbar(sc,self)
l.addWidget(bar)
self.main_widget.setFocus()
self.setCentralWidget(self.main_widget)



def fileQuit(self):
self.close()

def closeEvent(self, ce):
self.fileQuit()

def about(self):
QtGui.QMessageBox.about(self, "About %s" % progname,
u"""%(prog)s version %(version)s
Copyright \N{COPYRIGHT SIGN} 2005 Florent Rougon, 2006 Darren Dale

This program is a simple example of a Qt4 application embedding matplotlib
canvases.

It may be used and modified with no restriction; raw copies as well as
modified versions may be distributed without limitation."""
% {"prog": progname, "version": progversion})

qApp = QtGui.QApplication(sys.argv)

aw = ApplicationWindow()
aw.setWindowTitle("%s" % progname)
aw.show()
sys.exit(qApp.exec_())

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] mplot3D plot_surface colors

2009-08-26 Thread Reinier Heeres
Hi JJ,

Thanks for the examples! I indeed suspected the anti-aliasing as well.
I'll include an option for linecolors = facecolors soon (probably this
weekend); it seems to be a good solution.

After that I'll try to implement usage of the Gouraud shading,
although I fear that this will not look nice with
edgecolors=facecolors, so anti-aliasing might have to be turned off in
that case. Is it perhaps possible to only render the surface with AA
off?

Cheers,
Reinier

On Wed, Aug 26, 2009 at 5:03 PM, Jae-Joon Lee wrote:
> On Wed, Aug 26, 2009 at 6:22 AM, German Ocampo wrote:
>> Hello
>>
>> Are there some way to take out the gridlines from a surface in mplot3D
>> and get a smooth colour change?
>
> I think surface plot does not draw any gridlines by default (linewidth
> set to 0). Maybe you're referring the artifacts between each surface
> elements, as can be seen in the example below
>
> http://matplotlib.sourceforge.net/examples/mplot3d/surface3d_demo.html
>
> My guess is that they are artifacts of antialiasing that edges gets
> somewhat transparent.
>
> So, you may turn off antialiasing, but plot gets a bit ugly. Or you
> may actually strokes the edges with their face colors.
>
> See the example plot attached.
>
> The second example is created with high resolution grid to demonstrate
> smooth color variation (this is extremely slow to render though).
>
> It may be better if mplot3d has option for this, but I'll leave it to
> Reinier, the original author of mplot3d.
>
> Micheal,
> If my understanding is correct, we will see this artifacts even with
> the Gouraud shading. What do you think?
>
> Regards,
>
> -JJ
>
> ps. I'm resending this message with external link to images due to the
> attachment size limit in mpl list.
>
> http://dl.getdropbox.com/u/178748/mpl/mplo3d_test_lowres.png
> http://dl.getdropbox.com/u/178748/mpl/mplo3d_test_hires.png

-- 
Reinier Heeres
Tel: +31 6 10852639

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Area chart?

2009-08-26 Thread Matthias Michler
Hi,

I think fill_between is what you are looking for:

http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.fill_between
 
or
http://matplotlib.sourceforge.net/examples/pylab_examples/fill_between_demo.html

best regards Matthias

On Wednesday 26 August 2009 17:03:20 ms wrote:
> Hi,
>
> Can anyone help me to find how to draw an area chart (something like
> http://commons.wikimedia.org/wiki/File:Browser_Wars.png ) with MPL?
> Googling and the MPL gallery didn't help.
>
> thanks!
>
> m.


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] mplot3D plot_surface colors

2009-08-26 Thread Jae-Joon Lee
On Wed, Aug 26, 2009 at 6:22 AM, German Ocampo wrote:
> Hello
>
> Are there some way to take out the gridlines from a surface in mplot3D
> and get a smooth colour change?
>


I think surface plot does not draw any gridlines by default (linewidth
set to 0). Maybe you're referring the artifacts between each surface
elements, as can be seen in the example below

http://matplotlib.sourceforge.net/examples/mplot3d/surface3d_demo.html

My guess is that they are artifacts of antialiasing that edges gets
somewhat transparent.

So, you may turn off antialiasing, but plot gets a bit ugly. Or you
may actually strokes the edges with their face colors.

See the example plot attached.

The second example is created with high resolution grid to demonstrate
smooth color variation (this is extremely slow to render though).

It may be better if mplot3d has option for this, but I'll leave it to
Reinier, the original author of mplot3d.

Micheal,
If my understanding is correct, we will see this artifacts even with
the Gouraud shading. What do you think?

Regards,

-JJ

ps. I'm resending this message with external link to images due to the
attachment size limit in mpl list.

http://dl.getdropbox.com/u/178748/mpl/mplo3d_test_lowres.png
http://dl.getdropbox.com/u/178748/mpl/mplo3d_test_hires.png

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Area chart?

2009-08-26 Thread ms
Hi,

Can anyone help me to find how to draw an area chart (something like
http://commons.wikimedia.org/wiki/File:Browser_Wars.png ) with MPL?
Googling and the MPL gallery didn't help.

thanks!

m.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] mplot3D plot_surface colors

2009-08-26 Thread German Ocampo
Mike

thanks for your answer. I will wait  for this option.

regards

german

On Wed, Aug 26, 2009 at 3:45 PM, Michael Droettboom wrote:
> Smooth Gouraud shading on surface plots is being worked on, but is not yet
> implemented.
>
> Mike
>
> German Ocampo wrote:
>>
>> Hello
>>
>> Are there some way to take out the gridlines from a surface in mplot3D
>> and get a smooth colour change?
>>
>> Thanks
>>
>> German
>>
>>
>> --
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day trial. Simplify your report design, integration and deployment - and
>> focus on what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
>
> --
> Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] mplot3D plot_surface colors

2009-08-26 Thread Michael Droettboom
Smooth Gouraud shading on surface plots is being worked on, but is not 
yet implemented.

Mike

German Ocampo wrote:
> Hello
>
> Are there some way to take out the gridlines from a surface in mplot3D
> and get a smooth colour change?
>
> Thanks
>
> German
>
> --
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>   

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Matplotlib and py2exe

2009-08-26 Thread sandeep . prasad
Hello Matplotlib Users and Developers,


I found some examples of setup.py over the internet to be used for 
matplotlib  with py2exe , i have attached a modified sample that i am 
using for my program . Additionally i get the following error  when i run 
the exe.

=
  File "zipextimporter.pyo", line 82, in load_module
  File "pylab.pyo", line 1, in 
  File "zipextimporter.pyo", line 82, in load_module
  File "matplotlib\pylab.pyo", line 253, in 
  File "zipextimporter.pyo", line 82, in load_module
  File "matplotlib\pyplot.pyo", line 75, in 
  File "matplotlib\backends\__init__.pyo", line 25, in pylab_setup
ImportError: No module named backend_tkagg
=

If people could help i would be really grateful.



Regards,
Sandeep Prasad
Tata Consultancy Services
Plot No 1, Survey No. 64/2, Software Units Layout
Serilingampally Mandal, Madhapur
Hyderabad,Andhra Pradesh
India
Ph:- 04066673582
Cell:- 9640795927
Mailto: sandeep.pra...@tcs.com
Website: http://www.tcs.com

Experience certainty.   IT Services
Business Solutions
Outsourcing

=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




setup.py
Description: Binary data
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] mplot3D plot_surface colors

2009-08-26 Thread German Ocampo
Hello

Are there some way to take out the gridlines from a surface in mplot3D
and get a smooth colour change?

Thanks

German

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Pareto diagram - align cumulative percentage marker in the middle of the bars

2009-08-26 Thread Werner F. Bruhin
Chris,

Christopher Barker wrote:
> Werner F. Bruhin wrote:
>> The other problem I have is that the xtick_labels are cut off at the 
>> bottom when the frame is resized below a certain size.  How can I 
>> prevent this?
>
> I don't think MPL yet has a system for making things fit, so you need 
> to change the size/position of your axes object:
>
> axes.set_position(pos, which='both')
>
> """
> Set the axes position with:
>
> pos = [left, bottom, width, height]
> """
>
> these are in "figure units" which are relative to figure size, from 0 
> to 1. Unfortunately, what this means is that the amount of space for 
> the axis labels varies with the size of the figure, as you've discovered.
>
>
> The default for a single axes in a figure is:
>
> (0.125,  0.1,  0.9,  0.9)
>
> so you might try something like:
>
> axes.set_position((0.125,  0.15,  0.9,  0.85) )
>
> what is best depends on what size you want your figure to look good at.
Thanks for this tip, will play around with this a bit.  First try shifts 
the figure of the panel on the top left and right, so this will need a 
bit more digging on my part.

Werner



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] contour lines not hidden by patches

2009-08-26 Thread Auré Gourrier
> The patches hide the contourf correctly, as expected, but not the

> contour lines...

Sounds like a zorder problem:

http://matplotlib.sourceforge.net/examples/pylab_examples/zorder_demo.html

-- 
Jouni K.. Sepp?nen


I'd missed that point... Thanks, it's working fine now !
Cheers,
Aure



  --
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users