I have made this small demo, to show as is possible, in the limits of wx.libplot, to customize the axis labels.
I would like one comment of yours.
I’ have attached the code.
I have made this small demo, to show as is possible, in the limits of wx.libplot, to customize the axis labels.
I would like one comment of yours.
I’ have attached the code.
You need to use to define the string as Unicode for that to work, if you do that then you also need an encoding line and the hack I added at the beginning if you are on Python 2.x (by default it is in ASCII).
I have made this small demo, to show as is possible, in the limits of wx.libplot, to customize the axis labels.
I would like one comment of yours.
I' have attached the code.
thank Werner for suggestions,
anyway, I’m on debian 6 and when I run your script I recive
Traceback (most recent call last):
File “/home/pep/Downloads/plotcanvas-2.py”, line 22, in
wxversion.select(‘2.9’)
File “/usr/lib/python2.6/dist-packages/wxversion.py”, line 152, in select
raise VersionError(“Requested version of wxPython not found”)
VersionError: Requested version of wxPython not found
that is right on my platform cause debian 6 have python 2.6.
change with
wxversion.select(‘2.8’)
it work
"You need to use to define the string as Unicode for that to work, if you
do that then you also need an encoding line and the hack I added at the
beginning if you are on Python 2.x (by default it is in ASCII).
"
my idle have Default Source Encoding on UTF-8 but you are right on use
u" %s ºC" that’s my mistake.
even shebang is another error.
regards
beppe
···
Il giorno venerdì 15 agosto 2014 07:51:30 UTC+2, werner ha scritto:
On 8/14/2014 19:15, beppe wrote:
hi all,
arising from a post of the 2008 of Mike Rooney that you can read here.
I have made this small demo, to show as is possible, in the limits of
wx.libplot, to customize the axis labels.
I would like one comment of yours.
I’ have attached the code.
You need to use to define the string as Unicode for that to work, if you
do that then you also need an encoding line and the hack I added at the
beginning if you are on Python 2.x (by default it is in ASCII).