March 7, 2017
Thank for this hint, cstapels.
To start with: I have set the 'ROUNDING' in the ThingSpeak channels to '2', I assumed that this would be sufficeint to solve the problem...... Well, it doesn't.
So I tried your ytickformat('%.2f') suggestion.
But it is not working (yet).
I have two Y-axis, one on the left and one on the right side of the chart. How do i distinguish between these two, and how shoud i put this in the my code?
The code (so far) is:
% Channel ID to read data from
readChannelID = 531447;
% ORP Field ID
ORPFieldID = 4;
% Temperature Field ID
TempFieldID = 2;
% Channel Read API Key
% If your channel is private, then enter the read API
% Key between the '' below:
readAPIKey = '#############';
[data,timeStamps] = thingSpeakRead(readChannelID,'Fields',[ORPFieldID TempFieldID], ...
ORPData = data(:,1);
% Read Temperature Data
TempData = data(:,2);
thingSpeakPlotYY(timeStamps,ORPData,timeStamps,TempData, 'Ylabel1','ORP', 'Ylabel2','Celsius');
March 7, 2017
Since you are using the thingSpeakPlotYY, then yTickFormat() will not work.
Here is a good example using thingSpeakPlotYY()
After you read the data from your thingSpeak channel, then use the round function.
Then use thingSpeakPlotYY with dataRound.
Most Users Ever Online: 114
Currently Browsing this Page:
Guest Posters: 1
Newest Members:Georgesic, BalladolbineAboth, Wayneamure, MattonAboth, ginatm2, Spreeuw
Administrators: Hans: 387, lee: 457