Following up, after a bit of research...
It seems it's alla about QString (which is gone in api 2)
it is suggested to convert the QString into a unicode python2 string
http://wiki.python.org/moin/PortingPythonToPy3k/PyQt4
Do you think could be the way to go for the qt backend?
Cheers,
Michele.
Dear list,
I'm trying to to use matplotlib in a Qt application which needs the
sip API set to 2
import sip
sip.setapi('QString', 2)
However if I do this I get this error
ImportError: cannot import name QString
I'm wondering if I'm the first to stumble upon this one, or
On Tue, Feb 22, 2011 at 4:23 AM, Daniel Mader
wrote:
> Hi,
>
> there has been a similar question recently but I couldn't figure out
> if or how this is solved:
>
> I'd like to reduce the figure size so that I can add it to a LaTeX
> document without scaling (PDF output with LaTeX font rendering).
Is there a 64bit installer of matplotlib for mac os x available?
Cheers
Tommy
--
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast
2011/2/22 Benjamin Root :
>
> Admittedly, this isn't using matplotlib's hist() function because it only
> allows for one color per dataset. However, you can use numpy's histogram
> function to get the bins and counts yourself, and then use bar() to make the
> bars. bar() will allow you to color t
2011/2/22 Daniel Mader :
> Hi,
>
> there has been a similar question recently but I couldn't figure out
> if or how this is solved:
>
> I'd like to reduce the figure size so that I can add it to a LaTeX
> document without scaling (PDF output with LaTeX font rendering). For
> that, I need to adapt t
On Wed, Feb 23, 2011 at 6:56 PM, Jack Sankey wrote:
> Hi everyone!
>
> Is there any backend-independent way to get and set the figure window
> coordinates and sizes (i.e. in pixels)? Currently when I make new plots they
> appear in random locations as determined by my operating system; during
> a
On Wed, Feb 23, 2011 at 10:52 PM, Mark Janikas wrote:
> Hello All,
>
>
>
> Is there a way to add HTML links into output graphics? In short, I would
> like to use something like the PLT.text command and have it link to an html
> page. The url arg doesn’t seem to be what I am looking for.
>
>
>
Jason,
Try adding a pyqt property 'facecolor' to your widget.
(This way you can set it also through the designer.)
Add something like this to the widget's __init__ method:
figFacecolor = QtCore.pyqtProperty(str, getfigfacecolor,
setfigfacecolor, resetfigfacecolor)
I haven't seen this done before so I don't know if there's a standard
way. The idea seems to be to take some points which are real data,
create a random variable for each point with the points' position as
the mean, then choose some number of points from each distribution to
create some new points
10 matches
Mail list logo