Try the script below
import originpro as op
gl = op.new_graph()[0]
gl.set_int('x.reflines.count',1)
gl.set_int('x.reflines.lineshow',1)
gl.set_float('x.refline1.value',4)
gl.set_int('x.refline1.labelshow',1)
gl.set_str('x.refline1.labeltext','abc')
gl.lt_exec("RLX1.rotate=90") ## RLX1 is the object name of the label
quote:
Originally posted by jodokusquack
Nice, it works! Thank you very much for the script.
Would it also be possible to rotate the label so that they are displayed vertically?
In some of my plots the labels overlap if I add too many and having them vertically would be more space-saving.