Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Removing bottom of y axis' topicStudent Support Forum > General > "Removing bottom of y axis"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Michael
06/29/12 8:12pm

Try using Dashing. I fix the PlotRange so I know the exact height, since the lengths of the dashes are relative. You have to unset the Dashing for the tick marks to show up. Example:

defaultAspectRatio = 1/GoldenRatio;
Plot[E^x - 2, {x, -2, 2},
PlotRange -> {-2, 5.5},
AxesStyle -> {Automatic,
Dashing[{0, 2/7.5, 5.5/7.5}*defaultAspectRatio]},
Ticks -> {Automatic, Range[5]},
TicksStyle -> Directive[Dashing[{}]]]

URL: ,

Subject (listing for 'Removing bottom of y axis')
Author Date Posted
Removing bottom of y axis Ryan 06/29/12 10:29am
Re: Removing bottom of y axis Michael 06/29/12 8:12pm
Re: Removing bottom of y axis yehuda 06/30/12 3:20pm
Re: Removing bottom of y axis yehuda 07/01/12 03:45am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic