|
From: <ai...@us...> - 2013-09-26 23:07:07
|
Revision: 12536
http://sourceforge.net/p/plplot/code/12536
Author: airwin
Date: 2013-09-26 23:07:02 +0000 (Thu, 26 Sep 2013)
Log Message:
-----------
Implement a method (used just for example 33 right now) for selecting
a subset of the pages to display on our website.
Tested by Alan W. Irwin <ai...@us...> by running
the scripts/generate_website.sh script and looking at the
website results for each example to make sure all pages
are displayed except for example 33 where, as expected, the
correct subset of pages was displayed.
Modified Paths:
--------------
trunk/www/examples.php
Modified: trunk/www/examples.php
===================================================================
--- trunk/www/examples.php 2013-09-26 21:59:56 UTC (rev 12535)
+++ trunk/www/examples.php 2013-09-26 23:07:02 UTC (rev 12536)
@@ -40,7 +40,7 @@
\n", array_fill( 0, 1, 1)),
array(11, 8, 1, "
<p>Mesh plot demo.</p>
- \n, array_fill( 0, 8, 1)"),
+ \n", array_fill( 0, 8, 1)),
array(12, 1, 1, "
<p>Bar chart demo.</p>
\n", array_fill( 0, 1, 1)),
@@ -119,8 +119,20 @@
<p>Demo of how to draw box-whisker / candlestick plots using PLplot. These are commonly used for financial data.</p>
\n", array_fill( 0, 1, 1)),
array(33, 100, 1, "
- <p>Demo of legends and colorbars.</p>
- \n", array_fill( 0, 100, 1)));
+ <p>Subset of the results from the demo of legends and colorbars.</p>
+ \n", array_fill( 0, 100, 0)));
+ # Overwrite the example 33 pages (currently none) that will be displayed
+ $demoArray[33][4][0] = 1;
+ $demoArray[33][4][1] = 1;
+ $demoArray[33][4][2] = 1;
+ $demoArray[33][4][3] = 1;
+ $demoArray[33][4][4] = 1;
+ $demoArray[33][4][20] = 1;
+ $demoArray[33][4][36] = 1;
+ $demoArray[33][4][52] = 1;
+ $demoArray[33][4][68] = 1;
+ for($ndx = 84; $ndx <= 99; ++$ndx)
+ $demoArray[33][4][$ndx] = 1;
?>
<!-- include the html header -->
@@ -189,10 +201,12 @@
echo "<p>Select to view full-size image</p>\n";
echo "<p>\n";
for($ndx = 1; $ndx <= $nplots; ++$ndx) {
+ if($demoArray[$demoID-0][4][$ndx-1]==1){
$ndx_str = sprintf ("%02d", $ndx);
echo "<a href=\"$demo_dir/x$demo_str.$ndx_str.png\" rel=\"lightbox[plplot]\" title=\"x$demo_str.$ndx_str\">
<img src=\"$demo_dir/prev-x$demo_str.$ndx_str.png\" border=\"1\" alt=\"x$demo_str.$ndx_str\"/></a>\n";
}
+ }
echo "</p>\n";
// show credits if any
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|