Re: Clever Tricky Solutions
- To: mathgroup at smc.vnet.net
- Subject: [mg94248] Re: Clever Tricky Solutions
- From: Helen Read <read at math.uvm.edu>
- Date: Tue, 9 Dec 2008 06:56:36 -0500 (EST)
- References: <27271771.1228394784179.JavaMail.root@m02> <ghavpg$o9j$1@smc.vnet.net> <ghdmvt$frc$1@smc.vnet.net> <ghf70d$pdu$1@smc.vnet.net> <ghj02i$ffs$1@smc.vnet.net>
David Bailey wrote:
> Helen Read wrote:
>>
>> This was discussed here at length when v6 came out last year. WRI
>> changed the default behavior of Show beginning with 6.0, because,
>> according to them, with the various new graphics options (Filling, etc.)
>> introduced in v6, it "often" does not make sense to combine the
>> PlotRanges of the individual graphics. So instead, Show now uses the
>> PlotRange from the first graphic by default.
[snippage]
>> I greatly dislike this behavior, as I virtually *never* want the
>> PlotRange from the first plot. Rather, I want the PlotRanges combined
>> automatically by default, as Show did prior to v6. On the rare occasion
>> where I need something else, I can always specify the PlotRange
>> explicitly. [...]
> I agree something like this should be built in to Mathematica, but in
> the meantime, how about defining a little function such as:
>
> showAll[pl_List,opts___Rule]:=Module[{plRanges,x1,x2,y1,y2},
> plRanges=Map[AbsoluteOptions[#,PlotRange]&,pl];
> x1=Min@plRanges[[All,1,2,1,1]];
> x2=Max@plRanges[[All,1,2,1,2]];
> y1=Min@plRanges[[All,1,2,2,1]];
> y2=Max@plRanges[[All,1,2,2,2]];
> Show[pl,PlotRange->{{x1,x2},{y1,y2}},opts]
> ];
>
> showAll[{px1,px2}]
This would so not be worth it for my Calculus students.
Show[{plot1,plot2,plot3},PlotRange->Automatic] is a far simpler thing
for them to deal with.
--
Helen Read
University of Vermont