Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Plotting meters Vs mm
#1
Hello all

I have what seems like a silly question but i have doubts in my head.

I am trying to plot some data.

The X axis is distance measured in meters i.e.
0, 1, 2, 2.5, 3, 4, 6, 7.

However my Y values are in mm which represent the height of a wall i.e.
600, 650, 720, 550 etc.

I need to plot this data would i just plot meters against mm or would i convert the mm into meters or meters into mm.

The reason why i mention this is because the gradient would be very different.

Thank you.
Reply
#2
Matplotlib automatically adjusts x- and y- scales, so you don't need to worry about units of your axes. However, you could transform you data with, e.g. a log-function,numpy.log, if values belong to a wide interval.
Reply
#3
It's entirely up to you. What makes sense for the data? Of course, all 3 are equivalent but since you know the units, even if you've plotted with one pair, you could always convert to another as needed.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020