Hi,
I'm editing the supplied plot.lua example file with the aim of replacing the default "plot 0" legend with something else.

None of the methods I've tried work. Any Advice?


require("iuplua")
require("iuplua_plot")

plot = iup.plot{
   TITLE = "My Plot Test",
}

plot:Begin(0)
plot:Add(0, 0)
plot:Add(1, 1)

plot.legend = "YES"

plot.ds_name="DS_LC"                     -- <== Nope
plot.DS_LEGEND = "DSLEG"             -- <=== Nope
iup.SetAttribute(plot, "DS_NAME", "ATTR")   --<==Nope

ds=plot:End()

dlg = iup.dialog{
    TITLE = "Plot Test",
    SIZE = "400x200",
    plot,
}

dlg:showxy(iup.CENTER, iup.CENTER)

iup.MainLoop()
require("iuplua")
require("iuplua_plot")

plot = iup.plot{
   TITLE = "My Plot Test",
}

plot:Begin(0)
plot:Add(0, 0)
plot:Add(1, 1)

plot.ds_name="DS_LC"
plot.legend = "YES"
plot.DS_LEGEND = "DSLEG"
iup.SetAttribute(plot, "DS_NAME", "ATTR")

ds=plot:End()

dlg = iup.dialog{
    TITLE = "Plot Test",
    SIZE = "400x200",
    plot,
}

dlg:showxy(iup.CENTER, iup.CENTER)

iup.MainLoop()
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to