[Matplotlib-users] easy_setup and matplotlib

2009-12-26 Thread projetmbc
Hello,
I've tried, on Python 2.6 Mac O$, to install directly matpltolib with 
easy_install. I've not successed.

Is-it possible ?

Best regards.
Christophe.

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-19 Thread projetmbc
Lukas Hetzenecker a écrit :
 I tried to embed a Matplotlib FigureCanvas into a QTabWidget.
 But at the first start of my script - the main.py in the attatched example - 
 the widget in the Tab is incorrectly sized.
 If I embed the FigureCanvas in a QTabWidget the widget is to big, but if I 
 put 
 it in a QWidget it is shown correctly.
   
I'm not sure that is a pure MatPlotLib issue. Have you try with a big 
standard widget instead of the FigureCanvas ?

Christophe


--
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Draw a rectangle with a transparent hole

2009-06-06 Thread projetmbc
Hello,
I would like to draw a rectangle and then to cut a disc wich is in the 
rectangle.

Is it possible ?

Christophe


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib and qtdesigner

2009-06-04 Thread projetmbc
Christophe Dupre a écrit :

 I've been developping an application using PyQT and matplotlib for a 
 while now, and instead of coding the GUI, I'd like to make use of QT 
 designer.


Hello,
I'm interested by your code or simple parts of it wich show intercation 
between PyQt and matplotilib.

Best regards.
Another Christophe.


--
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] GSoC: TeX rendering engine

2009-04-27 Thread projetmbc
If it becomes easy to have formulas with Python then it would be used. 
That's sure. You can't say that C++ is better. I prefer Python, you work 
with C++, so why only a C++ version rather than a Python one ?

Christophe.



Kasper Peeters a écrit :
 Since the user base for a TeX typesetting library isn't particularly
 large (compared to other libraries), it's probably good to at least
 keep in mind that people might want to call this from a non-Python
 language (even though I will probably be tempted to convert my code to
 Python). In any case, having a Cairo backend will help.
   


--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] GSoC: TeX rendering engine

2009-04-27 Thread projetmbc
You're right. I've misunderstood your message.

Christophe

Kasper Peeters a écrit :
 If it becomes easy to have formulas with Python then it would be used. 
 That's sure. You can't say that C++ is better. 
 

 I didn't mean to say that, sorry if I gave the wrong impression. I
 simply meant to say that _if_ there are certain design decisions which
 can be made such that interfacing with other languages becomes easier,
 it is worth doing that. 

 I'd be perfectly happy with a Python-only version already.

 Cheers,
 Kasper
  


   



--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] GSoC: TeX rendering engine

2009-04-21 Thread projetmbc
That's could be cool but this needs to have access to the size of the 
final picture of the formula and the location of the baseline of the 
text. With this, it's easy to put formulas in a web page.

Christophe.
 Are there already any more concrete ideas on how this will be realised
 technically, in particular how this engine will be callable from
 Python programs?


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] How to get the coordinates (picker)

2009-03-24 Thread projetmbc
I hope to see the project on the web. I'm very intersting by simple 
examples using mpl with PyQt.

Christophe


  I got some good tips on how to do this from
  examples/event_handling/pick_event_demo.py
 
 Thanks!! It works just fine :). IDL is dead. Qt4 python and
 numpy/scipy/numpy are great tools.



Thanks!  You may also want to check out the event handling and picking
tutorial at

http://matplotlib.sourceforge.net/users/event_handling.html

JDH

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based 
development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users




--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] How to get the coordinates (picker)

2009-03-24 Thread projetmbc
I hope to see the project on the web. I'm very intersting by simple 
examples using mpl with PyQt. 

Christophe 

 
  I got some good tips on how to do this from 
  examples/event_handling/pick_event_demo.py 
  
 Thanks!! It works just fine :). IDL is dead. Qt4 python and 
 numpy/scipy/numpy are great tools. 
 
 
 
Thanks! You may also want to check out the event handling and picking 
tutorial at 
 
http://matplotlib.sourceforge.net/users/event_handling.html 
 
JDH 
 
-- 
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are 
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and 
easily build your RIAs with Flex Builder, the Eclipse(TM)based 
development 
software that enables intelligent coding and step-through debugging. 
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com 
___ 
Matplotlib-users mailing list 
Matplotlib-users@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/matplotlib-users 
 
 



--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Draging Points and Graph

2009-01-31 Thread projetmbc
Title: Flashmail




Hello,
I would like to drag points and graphs of functions with the mouse. Is there anexample somewhere of this kind of functionnality?

Christophe.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Draging Points and Graph

2009-01-31 Thread projetmbc
On Sat, Jan 31, 2009 at 5:03 AM,  projet...@club-internet.fr wrote:
 Hello,

 I would like to drag points and graphs of functions with the mouse. Is 
there
 an example somewhere of this kind of functionnality ?

Take a look at the event handling tutorial -- it includes a draggable
rectangle example

http://matplotlib.sourceforge.net/users/event_handling.html

JDH


Thanks for the link.

C.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Draging Points linked to lines.

2009-01-31 Thread projetmbc
On Sat, Jan 31, 2009 at 5:03 AM,  projet...@club-internet.fr wrote:
 Hello,

 I would like to drag points and graphs of functions with the mouse. Is 
there
 an example somewhere of this kind of functionnality ?

Take a look at the event handling tutorial -- it includes a draggable
rectangle example

http://matplotlib.sourceforge.net/users/event_handling.html

JDH


Indeed I would like to draw for example a line A-B-C-D where A,B,C and D 
are four points that could be drag.

Is there someone who had done that ?


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Ploting f(x;y)=0

2009-01-29 Thread projetmbc
On Jan 28, 2009, at 8:26 AM, projet...@club-internet.fr wrote:

 I'm looking a solution for ploting relation like f(x;y)=0.

I usually just contour the function over the region.  E.g.,

  import numpy as np
  import matplotlib.pyplot as plt
  x, y = mgrid[-10:10:50j, -10:10:50j]
  f = x**3 * y - 3.0
  contour(x, y, f, (0,))

The fourth argument to contour is a list of contours to plot, here  
only zero.

-Rob



Thanks, this works well with the following minor changes.

import numpy as np 
import matplotlib.pyplot as plt 
x, y = np.mgrid[-10:10:50j, -10:10:50j] 
f = x*np.sin(y) + y * np.sin(x) -4.0 
plt.contour(x, y, f, (0,))
plt.show()


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Ploting inequalities like x**3+y**2=3

2009-01-29 Thread projetmbc
hello,
I would like to know if there is a way to draw something like x**3+y**2=3.

If there is not a direct way to do that, I would like to know if it could be 
possible to subclass the method that plots the contours.

Best regards.
Christophe.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Plot only inside a disc

2009-01-29 Thread projetmbc
Hello,
I would like to make a kind of magnifying glass. So I need to have a piece of 
a graph and I would like it to have the form of a disc rather than of a box.
So is-it possible to only draw in a disc (I'm searching for a fast way to do 
that) ?

Best regards.
Christophe.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plot only inside a disc

2009-01-29 Thread projetmbc
Title: Flashmail




Thanks, your example works but what I must do so to plot for example y=cos x ? I'm a very beginner.

Christophe.
Message d'origine Date: Thu, 29 Jan 2009 09:34:11 -0600 Sujet: Re: [Matplotlib-users] Plot only inside a disc De: John Hunter A: projet...@club-internet.fr Copie à: matplotlib-users@lists.sourceforge.net  On Thu, Jan 29, 2009 at 9:19 AM, wrote:  Hello,  I would like to make a kind of magnifying glass. So I need to have a piece of  a graph and I would like it to have the form
of a disc rather than of a box.  So is-it possible to only draw in a disc (I'm searching for a fast way to do  that) ?  You can turn off the rendering of the normal axes and axis, and clip your data to an arbitrary patch or path; eg"""  Clipping to arbitrary patches and paths  """  import numpy as np  import matplotlib.pyplot as plt  import matplotlib.path as path  import matplotlib.
patches as patchesfig = plt.figure()  ax = fig.add_subplot(111, frameon=False, xticks=[], yticks=[])   im = ax.imshow(np.random.rand(10,10))   patch = patches.Circle((300,300), radius=100)  im.set_clip_path(patch)   plt.show()  


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Plot only inside a disc

2009-01-29 Thread projetmbc
 Thanks, your example works but what I must do so to plot for example 
y=cos x
 ? I'm a very beginner.

  line, = ax.plot(x, np.cos(x))
  patch = patches.Circle((300,300), radius=100)
  line.set_clip_path(patch)

Everything in the matplotlib figure is an Artist (lines, images,
text, rectangles) and you can set the clippath of any artist.  See

  http://matplotlib.sourceforge.net/users/artists.html
  http://matplotlib.sourceforge.net/api/artist_api.html

JDH


Thanks a lot ! I'll look more precisely the concept of artist later.

Best regards.
Christophe.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Ploting f(x;y)=0

2009-01-28 Thread projetmbc
Title: Flashmail




Hello,
I'm looking a solution for ploting relation like f(x;y)=0.

Best regards.
Christophe.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Vertical alignment of a text

2009-01-16 Thread projetmbc
Title: Flashmail




Thanks, that's work well.

Regards.
C.


I presume that you're only interested in the math formula, and not in any other graphical functionality of MPL. You may use mathtext module directly in that case.  from matplotlib.mathtext import MathTextParser  p = MathTextParser("bitmap") filename, texstr = "test.png", r"$\alpha$" p.to_png(filename, texstr) d = p.get_depth(texstr)


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Color Map.

2009-01-16 Thread projetmbc
Title: Flashmail




Thanks,
that's look great.

Regards.
C.

Unfortunately, I don't use Mayavi and therefore don't have any easy examples to offer. I guess you might find such things in the user guide or Cookbook.  http://code.enthought.com/projects/mayavi/docs/development/html/mayavi/ http://www.scipy.org/Cookbook/MayaVi  Cheers, Scott


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Figure with pyQt

2009-01-16 Thread projetmbc
That's great. I'm a real newbie with mpl and I would like to know how to 
change figure after a PyQt-Event.
That's must be simple but I don't see how to do this. My idea would be for 
example to show different kinds of draw like for example the sin function 
and another function. The users just have to click on some button. This is 
only to understand the way mpl manage changes in the figure.

If someone could helpme that would be greater than great.

Regards.
Christophe.




Message d'origine
Date: Fri, 16 Jan 2009 07:00:07 -0800 (PST)
De: B Clowers 
Sujet: Re: [Matplotlib-users] Figure with pyQt
A: matplotlib-users@lists.sourceforge.net, projet...@club-internet.fr


You'll have to excuse some of the comments in the code (it's in a constant 
state of revision), but this is a basic PyQt4/matplotlib widget that I use 
quite often and can be embedded using QtDesigner as well.  You'll 
obviously need PyQt4, Matplotlib, and Numpy to run it.  Of course mods can 
be made as you see fit for your particular application.  

I should note that Ctrl+Z zooms using the Spanselector and the top of the 
drawn span is the max Y and the the min Y always defaults to 0 (this works 
for my data sets).  Ctrl+A zooms out.  Save to csv is also an option 
(Ctrl+Alt+S)--this can fail if you've a weird data set. Ctrl+C copies a png of 
the current figure to the user's home directory (works for both Linux and 
Windows) and also puts the image on the current clipboard.  

I've also added an option to make multiple plot layouts that are stored in 
a dictionary that can be accessed to plot to the given axes.  If anyone has 
a more elegant solution please share.  Let me know if you've questions.

Cheers,

Brian

##
#!/usr/bin/env python

 
import os

import sys

 
from PyQt4 import QtCore,  QtGui

 
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as 
FigureCanvas

from matplotlib.backends.backend_qt4 import NavigationToolbar2QT as 
NavigationToolbar

#from matplotlib.backend_bases import NavigationToolbar2

 
from matplotlib.figure import Figure

 
from matplotlib.widgets import SpanSelector

#from matplotlib.pyplot import savefig

 
import numpy as N

 
 
class MyMplCanvas(FigureCanvas):

    def __init__(self, parent=None, width = 5, height = 5, dpi = 100, 
sharex = None, sharey = None):

    self.fig = Figure(figsize = (width, height), dpi=dpi, facecolor = 
'#FF')

    self.axDict = {}

    self.figInit = False

 
    self.sharey = sharey

    self.sharey = sharey

 
#    self.ax1.hold(True)

 
 
    FigureCanvas.__init__(self, self.fig)

    #self.fc = FigureCanvas(self.fig)

    FigureCanvas.setSizePolicy(self,

    QtGui.QSizePolicy.Expanding,

    QtGui.QSizePolicy.Expanding)

    FigureCanvas.updateGeometry(self)

    self.setupSub(1)

 
    def setupSub(self, numSubRows, numSubCols = 1, sharex = False, 
sharey = False):

    self.fig.clf()

    for m in range(1,numSubRows+1):

    for n in range(1,numSubCols+1):

    axName = 'ax%s'%m

    axLoc = 100*numSubRows+10*n+m

    #print axLoc

    if sharex:

    if m1:

    self.axDict[axName] = self.fig.add_subplot(axLoc, 
sharex 
= self.axDict['ax%s'%(m-1)])

    else:

    self.axDict[axName] = self.fig.add_subplot(axLoc)#, 
sharex = self.sharex, sharey = self.sharey)

    else:

    self.axDict[axName] = self.fig.add_subplot(axLoc)#, sharex 
= self.sharex, sharey = self.sharey)

 
    self.figInit = True

 
    self.fig.subplots_adjust(left=0.1, bottom=0.1, right=0.9, top=0.9)

    self.xtitle=

    self.ytitle=

    #self.PlotTitle = Plot

    self.grid_status = True

    self.xaxis_style = 'linear'

    self.yaxis_style = 'linear'

    self.format_labels()

 
 
 
    def format_labels(self):

    if self.figInit:

    for ax in self.axDict.itervalues():

    ax.title.set_fontsize(10)

    ax.set_xlabel(self.xtitle, fontsize = 9)

    ax.set_ylabel(self.ytitle, fontsize = 9)

    labels_x = ax.get_xticklabels()

    labels_y = ax.get_yticklabels()

 
    for xlabel in labels_x:

    xlabel.set_fontsize(8)

    for ylabel in labels_y:

    ylabel.set_fontsize(8)

    ylabel.set_color('b')

    if ax.get_legend() != None:

    texts = ax.get_legend().get_texts()

    for text in texts:

    text.set_fontsize(8)

    else:

    print please initiate the number of subplots. Call 
*.canvas.setupSub(numofSubs)

 
    def sizeHint(self):

    w, h = self.get_width_height()

    return QtCore.QSize(w, h)

 
    def minimumSizeHint(self):

    

Re: [Matplotlib-users] Vertical alignment of a text

2009-01-15 Thread projetmbc
Title: Flashmail




Dimension of a text in mpl is renderer-dependent in general. Each renderer has "get_text_width_height_descent" method which returns width, height, and descent of the given text. If you're only interested in latex-rendered text, you may use the get_text_width_height_descent() method in the TexManager.  As you see, it is possible to know the dimension of the text, but these functionalities are not exposed to the user, and a bit difficult 
to use unless you're familiar with mpl. If you let us know for what you need to use the depth of the text, we may come up with some simple solution.  Regards,  -JJ Hello,
my purpose would be to align several formula for example.

Regrads,
Christophe.



--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] Figure with pyQt

2009-01-15 Thread projetmbc
Hello,
I would like to see the following example 
http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_demo.ht
ml using the 2nd one 
http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt
4.html .
In fact, I don't undrestand how to add the figure to the screen (I'm a real 
beginner with matplotlib but not with PyQt).

Thanks for any kind of help.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib and PyQt

2009-01-15 Thread projetmbc
Title: Flashmail




Simson Garfinkel wrote:  Why do you want to use PyQt and not wxwidgets?  maybe because the Qt license changed ? That's a reason for me to be interested in the answer.  cheers, Stef

Here something that could interest you.
Christophe



Dear Qt User: Nokia is pleased to announce that with the release of Qt 4.5 you will be able to use Qt under the Lesser General Public License (LGPL) version 2.1 terms. When released in March 2009, Qt will be made available under three licensing options: Commercial, LGPL and GPL. Prior versions of Qt are not impacted by this announcement. Nokia is committed to Qt and its continued development. By offering Qt under LGPL version 2.1 license terms alongside today’s
licensing options Nokia hopes to: - facilitate wider adoption of Qt across industries, desktop, web and embedded platforms. - establish Qt as a de facto standard for application development. - receive more valuable feedback and increased user contributions to ensure that Qt remains the best-in-class, cross-platform framework. - extend Nokia’s existing platform commitment to the open source community. By offering a cost-free LGPL license as well as commercial and
GPL licenses to Qt, you can choose the license model that best fits your development requirements. Irrespective of which license model you choose: - Qt Software is committed to continuing to provide our customers with the same level of professional support, services and regular releases you have come to expect of Qt Software. - We will continue to actively develop Qt, and with a greater degree of cooperation with the community through a new contribution model, we
hope to make Qt even more valuable to our users. For more information on the introduction of the LGPL license and what this means for you, please consult the Frequently Asked Questions section on www.qtsoftware.com. Best regards Tom Miller Director of Sales Nokia, Qt Software


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Figure with pyQt

2009-01-15 Thread projetmbc
 Hello,
 I would like to see the following example
 
http://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_demo.
ht
 
mlhttp://matplotlib.sourceforge.net/examples/pylab_examples/ellipse_de
mo.htmlusing the 2nd one
 
http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_
qt
 
4.htmlhttp://matplotlib.sourceforge.net/examples/user_interfaces/embed
ding_in_qt4.html.
 In fact, I don't undrestand how to add the figure to the screen (I'm a 
real
 beginner with matplotlib but not with PyQt).

 Thanks for any kind of help.


Everything you need is in those two examples. You create a figure, then
create a canvas by passing the figure to the FigureCanvasQTAgg()
constructor. Create the axes using the figure methods, add the ellipses
using the axes methods, and then you can either set the 
FigureCanvasQTAgg
instance as the central widget or you can add the canvas to the layout of
another widget and set the widget as the central widget.

Darren

 Thanks a lot.

Now I would like to redraw the static graph of the first example. This would 
be my last question.

Regards.
Christophe.

PS : if you want I can give the final example to add it to your examples.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] matplotlib and PyQt

2009-01-15 Thread projetmbc
Message d'origine
Date: Thu, 15 Jan 2009 13:05:21 -0600
Sujet: Re: [Matplotlib-users] matplotlib and PyQt
De: John Hunter 
A: projet...@club-internet.fr, Paul Ivanov 
Copie à: matplotlib-users@lists.sourceforge.net

On Wed, Jan 14, 2009 at 11:28 AM, John Hunter jdh2...@gmail.com 
wrote:

 Paul Ivanov recently wrote pong using the matplotlib event system, and
 then provided a gtk and qt version of them that requires no additional
 gui programming save for starting up the window and event loop.

Oops, accidentally attached the gtk version twice and not the qt
version -- here are the relevant files


 Thanks. I will look how to adapt this PyQT3 example to PyQt4 
(which are realy differents).

Regards.
Christophe.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] Vertical alignment of a text

2009-01-15 Thread projetmbc
Indeed I would also use mpl to have png of formulas so as to put them in a 
HTML page.

C.


va=baseline does not work?

-JJ


On Thu, Jan 15, 2009 at 3:05 AM,  projet...@club-internet.fr wrote:
Dimension of a text in mpl is renderer-dependent in general.
Each renderer has get_text_width_height_descent method which 
returns
width, height, and descent of the given text.
If you're only interested in latex-rendered text, you may use the
get_text_width_height_descent() method in the TexManager.

As you see, it is possible to know the dimension of the text, but
these functionalities are not exposed to the user, and a bit difficult
 to use unless you're familiar with mpl. If you let us know for what
you need to use the depth of the text, we may come up with some 
simple
solution.

Regards,

-JJ


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] matplotlib and PyQt

2009-01-14 Thread projetmbc
Hello,

I'm searching for informations about using matplotlib interactively with PyQt. 
I 
would like for example to move line with the mouse.


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users