LegendParams Command

Q&A for Visual Basic, Visual Basic .NET, and PowerBasic developers using DPlot
Post Reply
dkabq
Posts: 5
Joined: Mon Nov 20, 2017 4:32 pm

LegendParams Command

Post by dkabq »

I am having an issue with getting the LegendParams command to modify a plot. As a test, I have copied/pasted the example for making the legend background opaque, filled with a light cyan.

DPlot_Command(DocNum, "[LegendParams(,,,1,,,,,0x00FFFFC0)]")

I have DocNum=1, which works for the subsequent DPlot_command

DPlot_Command(DocNum, "[SetBackgroundImage(""d:\dplot_files\image.png"", 1, 1, 0, 0, 0, 0, 1, 150, -1)]")

Thanks for the help.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

I don't know. That worked fine for me just now when I used it in a macro.
Visualize Your Data
support@dplot.com
dkabq
Posts: 5
Joined: Mon Nov 20, 2017 4:32 pm

Post by dkabq »

Were you using it in a macro that modifies an XYZ contour plot?

Might the inability of my macro to execute the command be related to the Legends/Labels command being absent from my Text menu command list? It is there when I start DPlot, but vanishes after I create a new 3D surface plot (either manually or via a macro).
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Were you using it in a macro that modifies an XYZ contour plot?
No, and that's the problem. The legend in 3D plots is quite a bit different than 2D. You can't draw a frame or fill the background or move it to arbitrary locations, for example.
Visualize Your Data
support@dplot.com
dkabq
Posts: 5
Joined: Mon Nov 20, 2017 4:32 pm

Post by dkabq »

Well that is a bummer, as my legend is overlapping with the plot titles.

You might want to put a note in the User Manual LegendParams macro command stating that which plots the command is and is not valid for.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Well that is a bummer, as my legend is overlapping with the plot titles.
That should not ever happen. Please save your graph as a DPlot file and send it to me at support@dplot.com at your convenience.
Visualize Your Data
support@dplot.com
Post Reply