Re: ListPlot, Inverse plotting
- To: mathgroup at smc.vnet.net
- Subject: [mg90682] Re: ListPlot, Inverse plotting
- From: Bill Rowe <readnews at sbcglobal.net>
- Date: Sat, 19 Jul 2008 04:49:19 -0400 (EDT)
On 7/18/08 at 4:02 AM, trilling at orange.fr (Richard Trilling) wrote: >I want to do a standard ListPlot but I would like to inverse the >x-axis values such that the maximum is to the left of the minimum. >Is there an easy way to do that with the options of ListPlot? What you want can be done. For example, data = Range[10] + RandomReal[NormalDistribution[0, 1], {10}]; ListPlot[data] ListPlot[Reverse@data, Ticks -> {Transpose@{Range@10, Reverse@Range@10}, Automatic}] I'll leave it to you to decide whether this is "easy" or not.