Hi,
I'm having trouble getting the interactive cursor to work as expected
with the xcairo device. When trying to run an interactive graphics
window with the xcairo driver in 5.9.5, all I get is a black screen. In
5.9.7 I don't get a black screen, but do not get the crosshairs (traced
to the edges of the device window in both x and y) that are useful when
interacting with the plot. The other devices (e.g. xwin) work as
expected, but have yellow crosshairs which are hard to distinguish from
the white background I'm using. Plus they're just not as pretty as the
xcairo driver.
The structure returned does seem to be correct, i.e. gin.wX and gin.wY
seem to be where I would expect them to be. My test code is attached below.
Is there a way to control the color of the crosshairs drawn on the
screen that I'm not seeing? Is the default/expected behavior of the
xcairo device to not draw the crosshairs to the edges of the screen?
Thanks,
Ryan
=====
Relevant Info:
=====
Ubuntu 10.10
Linux HOSTNAME 2.6.35-24-generic #42-Ubuntu SMP Thu Dec 2 02:41:37 UTC
2010 x86_64 GNU/Linux
Using plplot 5.9.5 via python 2.6.6. Also compiled 5.9.7 from source
myself.
=====
Test code:
=====
#!/usr/bin/python
import plplot as pl
x=[1,2,3,4,5,6,7,8,9,10]
y=[10,9,9,7,6,5,4,3,2,1]
# Note that commenting this out below does not change the problem with
xcairo
# White background
pl.plscolbg(255,255,255)
# Map black to now be color 15
pl.plscol0(15,0,0,0)
# Initalize the plot (1x1 plots)
pl.plstart('?',1,1)
# Black axes
#pl.plcol0(15)
pl.plenv(-1, 11, -1, 11,0,0)
# Set line width and then draw the line
pl.plwid(1)
pl.plline(x, y)
pl.plcol0(9)
pl.plwid(2)
pl.plpoin(x, y, 1)
# Interactive cursor
gin = pl.PLGraphicsIn()
pl.plGetCursor(gin)
print gin.wX, gin.wY
pl.pleop()
pl.plend1()
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general