Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 rating:
 1 out of 5     Rate this Document

Setting the Plot Point Size in a Measurement Studio Graph

Primary Software: Measurement Studio>>.NET Support
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: Measurement Studio enables the user to plot points on a graph. However, the plot points are of a fixed size. Is it possible to change the size of a plot point?

Solution: Setting the LineWidth property of a Plot object sets the size of a plot point. In order to see points, the PointStyle of a Plot must be set to a value other than None. Setting the LineWidth also changes the size of plotted lines unless LineStyle is set to None.

Microsoft Visual C++

m_graph.GetPlots().Item("Plot").SetLineStyle(NI::CNiPlot::LineStyles::LineNone);
m_graph.GetPlots().Item("Plot").SetPointStyle(NI::CNiPlot::PointStyles::SolidSquare);
m_graph.GetPlots().Item("Plot").SetLineWidth(line_width);

Microsoft Visual C#

graph.Plots[0].LineStyle = NationalInstruments.UI.LineStyle.None;
graph.Plots[0].PointStyle = NationalInstruments.UI.PointStyle.SolidDiamond;
graph.Plots[0].LineWidth = line_width;

Microsoft Visual Basic .NET

graph.Plots(0).LineStyle = NationalInstruments.UI.LineStyle.None
graph.Plots(0).PointStyle = NationalInstruments.UI.PointStyle.EmptyDiamond
graph.Plots(0).LineWidth = line_width


Related Links: KnowledgeBase [13H7R292]: Can I Programmatically Change the Style of a Measurement Studio Graph Created in Visual Basic?
KnowledgeBase [31L5KLXZ ]: How Can I Set The CWGraph Style Programmatically?

Attachments:





Report Date: 11/15/2005
Last Updated: 08/08/2006
Document ID: 3RE4P2A8

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit