Student Support Forum: 'Re: Special Plot2D needed!' topicStudent Support Forum > General > Archives > "Re: Special Plot2D needed!"

 Help | Reply To Topic
 Author Comment/Response Forum Moderator email me 04/21/97 2:09pm Reply to message #299 from Kai Eckert: > Hi > Problem: I want to make a 2D-Plot but I want to change the orientation of the X-Axis so that it goes from i.e. 10 on the left to 0 on the right. > I mean it like this: > ! > ! > -------------------------------- > 10 9 8 7 6 5 4 3 2 1 0 > > (I don't want something like -10 -9 ...) > Is this possible? What do I have to do?? > Thank you!! > Kai _______________________________________ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Kai, Try this: Execute your plot and name the plot: In[3]:=gr = Plot[x^3, {x, 0, 10}] Out[3]= -Graphics- Now use a pattern and replacement to switch the x values: In[4]:=gr2 = gr /. {x_, y_} -> {-x, y} Out[4]= -Graphics- Now show the result with adjusted Tick Marks. In[6]:= Show[gr2, Ticks -> {Table [ {i, -i}, {i, -10, 0}], Automatic}] Forum Moderator URL: ,
 Help | Reply To Topic