Plot two data into the same graph (Field) - Raspberry Pi | Raspberry Pi | Forum

The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.

Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
Plot two data into the same graph (Field) - Raspberry Pi
No permission to create posts
August 19, 2018
5:06 am
New Member
Forum Posts: 1
Member Since:
August 19, 2018
sp_UserOfflineSmall Offline

I connected a sensor to capture (volt and current across a component) to a raspberry pi, and I wanna plot an IV curve.
in my code, I'm running a sweep to capture those data, my code works just fine and I can plot the IV curve on my GUI by using matplotlib.
In addition to my project, I wanna display/plot the IV curve online. Then I thought of using Thingspeak for this matter, but I noticed that it can only plots one data against time/date.
Is there anyway that I can plot two data on one graph and neglect the time?

Note that the data I'm sending to my Thingspeak channel are two variables i and v which each one has 14 values.

- data exported from Thingspeak
- commands used in pythonsc.PNGImage Enlarger

2018-08-19-170214_1824x984_scrot.pngImage Enlarger

sp_PlupAttachments Attachments
August 21, 2018
8:36 am

Forum Posts: 885
Member Since:
March 7, 2017
sp_UserOfflineSmall Offline

Here is a two axis plot example without time on the independant axis:

You can also use the MATLAB plot() or scatter() functions, they have different options.

Your data format is not in the standard arrangement - do you intend each entry to be a new IV sweep?

You can read the data
then use str2num and char to get the values.
Repeat for both field 1 and 2.

Then you can plot() or thingSpeakScatter(vectorX,vectorY, etc.)

Let us know if that works.

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
31 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

bogart, estebanmateo93, mikewrite, onlinebusiness, winzy99, Zark_zeugan

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457