Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.2K Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

ListPlot3D has the wrong range in Mathematica

Posted 4 years ago

I created a plot based on a series of 3D points (x,y,z). Here is a sample of the code I used:

ListPlot3D[{{0.44, 4.99 E - 05, 14.94}, {0.48, 4.99 E - 05, 14.91}, {0.52, 4.99 E - 05, 14.86}, {0.55, 4.99 E - 05, 14.84}, {0.58, 1.99 E - 04, 14.80}, {0.61, 4.99 E - 05, 14.75},{4.99 E - 05, 4.99 E - 05, 14.89}, {4.99 E - 05, 4.99 E - 05, 14.86}, {2.49 E - 04, 4.99 E - 05, 14.82}}, PlotRange ->Full]

All the x and y values of the points are less than 1, yet in the resulting graph the X axis has a domain of 0 to 6 while the Y axis goes from 0 to 8.

I want the axes to reflect my data, so what I want is to rescale the X and Y axes to a range from 0 to 1 without losing any points.

One thing I tried was to use DataRange -> {{0, 1}, {0, 1}}, but this makes the Graphs weird

What do you suggest?

POSTED BY: Orion B
3 Replies
Posted 4 years ago

Replace the E -05 instances with 10^-5

ListPlot3D[{
    {0.44, 4.99 10^-5, 14.94}, {0.48, 4.99 10^-5,14.91},{0.52, 4.99 10^-5, 14.86}, 
    {0.55, 4.99 10^-5, 14.84},{0.58, 1.99 10^-4, 14.80}, {0.61, 4.99 10^-5, 14.75}, 
    {4.99 10^-5, 4.99 10^-5, 14.89}, {4.99 10^-5, 4.99 10^-5, 14.86}, {2.49 10^-4, 4.99 10^-5, 14.82}
  },
  PlotRange -> Full
]
POSTED BY: Hans Milton
Posted 4 years ago

I created a plot based on a series of 3D points

How did you create the plot? Please edit your question and add a small sample of the data, and the code you used.

POSTED BY: Rohit Namjoshi
Posted 4 years ago

Done

POSTED BY: Orion B
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard