Display of values on Y axis

6 views (last 30 days)
When varying data is displayed on a chart the Y axis displays value lines. If all the data in a given chart window is the same then no Y value is shown. Can this be changed please?
  1 Comment
the cyclist
the cyclist on 20 Apr 2024
I don't realy understand the question. Can you post a small code example of what you mean?

Sign in to comment.

Accepted Answer

Geoff Champion
Geoff Champion on 21 Apr 2024
I have attached a pdf of the charts. I am logging the position of a gps sensor. Because the sensor is stationary, the top four charts show the same value for all data points and do not show a value caption on the left. The bottom two charts show varying data (eg. time) and do show value captions on the left or Y axis.
If the sensor moves, the top four charts will show varying data and will then show value captions.
I would prefer to have value captions under all conditions.
  2 Comments
Christopher Stapels
Christopher Stapels on 22 Apr 2024
If you set y-axis min to 0 or y=axis max to some number, you can force an axis to appear in the field charts on your channel.
You can also consider using a custom visualization. MATLAB plots do not have the same behaviour as the high charts.
i.e. this code
x=[1,1,1,1,1,1];
plot(x);
still provides a plot with an axis.
Geoff Champion
Geoff Champion on 23 Apr 2024
Thanks Christopher

Sign in to comment.

More Answers (0)

Communities

More Answers in the  ThingSpeak Community

Categories

Find more on Visualize Data in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!