Group Abstract Group Abstract

Message Boards Message Boards

0
|
3K Views
|
1 Reply
|
3 Total Likes
View groups...
Share
Share this post:

[?] Change the range of the axis on a ListDensityPlot?

Posted 5 years ago

I'm currently importing data from a file:

data = Import["/home/francesco/Desktop/ClasseMatrici/phasespace3.dat"];

There are 10^4 data points in such file, so that when I give the command

ListDensityPlot[data]

a two dimensional plot appears. The axis span from zero to one hundred, but the two (physical) variables have a different domain, the x-axis goes from -.5 to 4.5 and the y-axis from .2 to 4.1

How can I change the range of the values plotted for each axis?

Thank you in advance.

Attachments:

I think the option to use is DataRange

ListDensityPlot[data, DataRange -> {{-.4, 4.5}, {.2, 4.1}}]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard