<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Scaling y-axis for multiple plots in bivariate fit report output in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Scaling-y-axis-for-multiple-plots-in-bivariate-fit-report-output/m-p/700157#M88492</link>
    <description>&lt;P&gt;Using By variable will return a list of objects, so you have to manage that (loop over those elements or send a message to whole list). Below is example which might work when sending a message to the list (I usually use XPath() not Find(), but in this case Find() seemed much simpler)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
bivs = dt &amp;lt;&amp;lt; Bivariate(
	SendToByGroup(Bygroup Default),
	Y(:Weight),
	X(:Height),
	By(:age, :sex),
	Fit Special(yTran("Log"))
);

show(bivs); // list of bivariates
// You have to either loop over the list or send a message to the list

(bivs &amp;lt;&amp;lt; Find(AxisBox(1))) &amp;lt;&amp;lt; Scale("Log");
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Nov 2023 19:46:43 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2023-11-17T19:46:43Z</dc:date>
    <item>
      <title>Scaling y-axis for multiple plots in bivariate fit report output</title>
      <link>https://community.jmp.com/t5/Discussions/Scaling-y-axis-for-multiple-plots-in-bivariate-fit-report-output/m-p/700015#M88483</link>
      <description>&lt;DIV&gt;Hello all,&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I am creating a bivariate plot via a small script and I need to scale the y-axis to log scale for all the plots in the report. The number of plots can change depending on the dataset. However, with the following script, I am unable to scale the y-axis even for one plot.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks!&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;biv = Bivariate(
	SendToByGroup(Bygroup Default),
	Y(:y_value),
	X(:x_value),
	By(:VAR1, VAR2, VAR3),
	Fit Special(yTran("Log"))
);
 
Report(biv)[AxisBox(1)] &amp;lt;&amp;lt; {Scale("Log")};&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Nov 2023 19:42:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scaling-y-axis-for-multiple-plots-in-bivariate-fit-report-output/m-p/700015#M88483</guid>
      <dc:creator>CircularPuppy35</dc:creator>
      <dc:date>2023-11-17T19:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scaling y-axis for multiple plots in bivariate fit report output</title>
      <link>https://community.jmp.com/t5/Discussions/Scaling-y-axis-for-multiple-plots-in-bivariate-fit-report-output/m-p/700060#M88486</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/47778"&gt;@CircularPuppy35&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I think the problem might start with the fact that your report(biv) variable has multiple elements to it. If you look through the code below where I use the Big Class.jmp file and use :sex and :age as BY variables, you can see that the variable rbiv has 12 elements in it, and you need to access the ith element first, with something like rbiv[i]. See the code below. And, if you just loop through however many elements there are in rbiv, it'll change the Y-axis to all be Log.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

biv = Bivariate( Y( :height ), X( :weight ), By( :sex, :age ), Fit Special( yTran( "Log" ) ) );

rbiv = biv &amp;lt;&amp;lt; report;
For( i = 1, i &amp;lt;= N Items( rbiv ), i++,
	rbiv[i][Outline Box( 1 )][Axis Box( 1 )] &amp;lt;&amp;lt; {Scale( "Log" )}
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps!,&lt;/P&gt;&lt;P&gt;DS&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 18:53:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scaling-y-axis-for-multiple-plots-in-bivariate-fit-report-output/m-p/700060#M88486</guid>
      <dc:creator>SDF1</dc:creator>
      <dc:date>2023-11-17T18:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Scaling y-axis for multiple plots in bivariate fit report output</title>
      <link>https://community.jmp.com/t5/Discussions/Scaling-y-axis-for-multiple-plots-in-bivariate-fit-report-output/m-p/700157#M88492</link>
      <description>&lt;P&gt;Using By variable will return a list of objects, so you have to manage that (loop over those elements or send a message to whole list). Below is example which might work when sending a message to the list (I usually use XPath() not Find(), but in this case Find() seemed much simpler)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Big Class.jmp");
bivs = dt &amp;lt;&amp;lt; Bivariate(
	SendToByGroup(Bygroup Default),
	Y(:Weight),
	X(:Height),
	By(:age, :sex),
	Fit Special(yTran("Log"))
);

show(bivs); // list of bivariates
// You have to either loop over the list or send a message to the list

(bivs &amp;lt;&amp;lt; Find(AxisBox(1))) &amp;lt;&amp;lt; Scale("Log");
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Nov 2023 19:46:43 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scaling-y-axis-for-multiple-plots-in-bivariate-fit-report-output/m-p/700157#M88492</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-11-17T19:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Scaling y-axis for multiple plots in bivariate fit report output</title>
      <link>https://community.jmp.com/t5/Discussions/Scaling-y-axis-for-multiple-plots-in-bivariate-fit-report-output/m-p/701168#M88576</link>
      <description>&lt;P&gt;Thanks a lot. This worked seamlessly. Appreciate the help!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 23:04:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Scaling-y-axis-for-multiple-plots-in-bivariate-fit-report-output/m-p/701168#M88576</guid>
      <dc:creator>CircularPuppy35</dc:creator>
      <dc:date>2023-11-20T23:04:02Z</dc:date>
    </item>
  </channel>
</rss>

