Message Boards Message Boards

0
|
3084 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Explicitly Define Range of Axis in a Plot

Posted 5 years ago

How would I limit the Y axis to e.g. 0.3? Don't understand why it extends to 0.6?

Plot[{
  Y2 = x + 5 x^2 - 42.0693 x^3 + 116.2890 x^4 - 158.3158 x^5 + 
    105.2422 x^6 - 27.1461 x^7,
  F = x (1 - x)*(1.1077 + 2.7683 x - 13.4475 x^2 + 19.8951 x^3 - 
      10.2309 x^4)}, {x, 0.0, 1.0},
 AspectRatio -> 0.2,
 AxesLabel -> {x, "Y2"},
 PlotLabels -> Placed[{"Y2", "F"}, Above],
 PlotStyle -> {Red, Dashed}]
POSTED BY: Kevin Ulmer
2 Replies

The Y axis seems to leave space for the PlotLabels. You may consider changing their position. Right now they overlap each other.

POSTED BY: Gianluca Gorni
Posted 5 years ago

Yes, that was the problem. Many thanks!

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

Group Abstract Group Abstract