XYGraph Xaxis grid settings

18 views
Skip to first unread message

Amien Crombie

unread,
Mar 7, 2017, 2:06:15 AM3/7/17
to CSS BOY
Hi 

I am struggling just to show on my Xaxis the '0' (zero) marker with a different color and line width.
As you can see from my code, I have xaxis range from -24 to 24
I need to show the zero marker with a different color and importantly a linewidth of say 2

###########################################################################

importPackage(Packages.org.csstudio.opibuilder.scriptUtil);
importPackage(Packages.org.csstudio.swt.xygraph.figures);
importPackage(Packages.org.csstudio.ui.util);

var g = widget.getFigure().getXYGraph();

g.setTitle("PV name");

g.primaryXAxis.setRange(-24,24);

g.primaryYAxis.setShowMajorGrid(true);

##########################################################################

Any help would be appreciated
Amien
Reply all
Reply to author
Forward
0 new messages