04-29-2019 12:55 PM
I am working on a similar program like the regression example with LabVIEW. Instead of showing the default x-axis tick values, I would like to show them as A,B,C,D,E,F only to represent that the raw data on the x-axis.
Solved! Go to Solution.
04-29-2019 02:01 PM
If you can find a better way, I will be happy to learn about it.
Ben
04-29-2019 03:01 PM
For this application, and I mean literally for this application, for display you could create an array of integers10-15 for your six points and change the display format of the x-axis to hex.
If you've got more than six points then it's off to plan b. Even if you do have six points I'd seriously consider plan b....
04-30-2019 07:38 AM
04-30-2019 07:38 AM
04-30-2019 08:07 AM
@asukumari wrote:
Thank you Ben. Looks like there is no other way to do this other than your's. I will implement using your method.
Thanks.
Another approach could use a graph and annotations. Annotations would tolerate the graph tools easier (zooming etc.).
Ben
04-30-2019 08:26 AM
That's exactly what I was looking into right now: KnowledgeBase
Looks a lot easier to do this for my purpose. I wonder how they added the left and right padding to the graph. The default settings shows first data point at the very edge of the plot (which is really counter intuitive).
I am so used to Wolfram Mathematica's ListPlot or ListLinePlot that I automatically assume I don't need to add any padding to the plot.
04-30-2019 09:13 AM
@asukumari wrote:
I wonder how they added the left and right padding to the graph.
You could try to add the coordinates (0, NaN) and (10, NaN) to try to get the padding you are looking for. Otherwise, you will probably need to programmatically set the start and end properties for the graph's x-axis.