LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph Legend text size

Hello,

 

i cant find an attribute to set the text size of the graph legend.

 

There are som Plot Attributes to set the font and font length but no Attribute for the size?

 

How can i set the size of the grapg legend?

 

Thanks

 

Norbert Rieper

Message 1 of 4
(3,395 Views)

You can use a metafont that you create yourself, and thus use a custom size. For example:

 

CreateMetaFont ("my font", VAL_DIALOG_META_FONT, newSize, 0, 0, 0, 0);
SetPlotAttribute (panel, PANEL_GRAPH, plotId, ATTR_PLOT_LG_FONT, "my font");

Message 2 of 4
(3,384 Views)

Hello LuisG,

 

thanks a lot, thats a nice workaround.

0 Kudos
Message 3 of 4
(3,378 Views)

@LuisG wrote:

You can use a metafont that you create yourself, and thus use a custom size. For example:

 

CreateMetaFont ("my font", VAL_DIALOG_META_FONT, newSize, 0, 0, 0, 0);
SetPlotAttribute (panel, PANEL_GRAPH, plotId, ATTR_PLOT_LG_FONT, "my font");


Wow, I never would have thought of this work-around, but it totally gets the job done.  

 

In my case, I was after an attribute like ATTR_PLOT_LG_FONT_BOLD which doesn't exist.  So with CreateMetaFont I can make my own with bold enabled.

0 Kudos
Message 4 of 4
(2,309 Views)