Ryan Hamilton wrote: > 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.
This is due to differences in how the crosshairs are implemented. The xcairo device just changes the cursor to a crosshair, the xwin device (and the Qt devices) also draw the lines to the edge of the screen. > 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? Unfortunately there is no option (as far as I know) to change the color the crosshairs. The expected behavior of the xcairo device is to just draw a crosshair. My recollection is that I thought about implementing the line drawing behavior in xcairo, but on seeing how complicated the code in xwin the device is to do this I decided not to pursue this feature. -Hazen ------------------------------------------------------------------------------ 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
