|
From: <sm...@us...> - 2008-07-25 11:47:40
|
Revision: 8593
http://plplot.svn.sourceforge.net/plplot/?rev=8593&view=rev
Author: smekal
Date: 2008-07-25 11:47:48 +0000 (Fri, 25 Jul 2008)
Log Message:
-----------
Made the fonts a little tad darker. Added a "Try it online!" link. Corrected some spelling mistakes. Added some comments to the php files.
Modified Paths:
--------------
trunk/www/corefunctions.php
trunk/www/css/style.css
trunk/www/examples.php
trunk/www/index_new.php
trunk/www/template.php
Modified: trunk/www/corefunctions.php
===================================================================
--- trunk/www/corefunctions.php 2008-07-25 09:24:59 UTC (rev 8592)
+++ trunk/www/corefunctions.php 2008-07-25 11:47:48 UTC (rev 8593)
@@ -110,6 +110,7 @@
<h3>Links</h3>
<ul class="arrowlist">
+ <li><a href="http://www.hbabcock.org/plplot/readme.html">Try PLplot online!</a></li>
<li><a href="http://sourceforge.net/project/?group_id=2915">SF project page</a></li>
</ul>
</div>
Modified: trunk/www/css/style.css
===================================================================
--- trunk/www/css/style.css 2008-07-25 09:24:59 UTC (rev 8592)
+++ trunk/www/css/style.css 2008-07-25 11:47:48 UTC (rev 8593)
@@ -146,7 +146,7 @@
margin-bottom:15px;
font-family: verdana, arial, sans-serif;
font-size: 11px;
- color: #666666;
+ color: #333333;
line-height: 16px;
padding-left:4px;
}
@@ -182,7 +182,7 @@
margin-bottom:5px;
font-family: verdana, arial, sans-serif;
font-size: 15px;
- color: #666666;
+ color: #333333;
background-color:#FFFFFF;
padding:4px;
clear:both;
@@ -193,7 +193,7 @@
margin-bottom:15px;
font-family: verdana, arial, sans-serif;
font-size: 12px;
- color: #666666;
+ color: #333333;
line-height: 18px;
padding-left:4px;
}
@@ -231,7 +231,7 @@
#featurebox p {
font-family: verdana, arial, sans-serif;
font-size: 11px;
- color: #555555;
+ color: #222222;
line-height: 16px;
margin-bottom:5px;
}
@@ -292,7 +292,7 @@
font-family: verdana, arial, sans-serif;
font-size: 11px;
line-height:18px;
- color: #666666;
+ color: #333333;
}
/**************** Searchbar styles ****************/
@@ -318,4 +318,4 @@
/**************** Misc classes and styles ****************/
.splitcontentleft{float:left; width:48%;}
-.splitcontentright{float:right; width:48%;}
\ No newline at end of file
+.splitcontentright{float:right; width:48%;}
Modified: trunk/www/examples.php
===================================================================
--- trunk/www/examples.php 2008-07-25 09:24:59 UTC (rev 8592)
+++ trunk/www/examples.php 2008-07-25 11:47:48 UTC (rev 8593)
@@ -3,6 +3,7 @@
# Each element of the structure below contains:
# [ demo#, number of pages, particular thumbnail for top-level page, credits]
+ # if number of pages==0 the entry is ignored (e.g. example 14 and 17)
$demoArray = array(
array( 1, 1, 1, ""),
array( 2, 2, 1, ""),
@@ -42,25 +43,31 @@
array(30, 2, 1, ""));
?>
+<!-- include the html header -->
<?php pageHeader("Examples"); ?>
<body>
<div id="pagewrapper">
+ <!-- create the menu, examples is selected -->
<?php pageMenu("examples"); ?>
+ <!-- the actual content of the page -->
<div id="contentwrapper">
<div id="fullside">
<?php
+ // if the variable demo was set the source code of this example
+ // is displayed
if(isset($_GET["demo"])) {
- $demoID=$_GET["demo"];
- $lbind=$_GET["lbind"];
+ $demoID=$_GET["demo"]; // demo number
+ $lbind=$_GET["lbind"]; // language
$demo_str = sprintf("%02d", $demoArray[$demoID-1][0]);
$nplots = $demoArray[$demoID-1][1];
$credits = $demoArray[$demoID-1][3];
$demo_dir = "examples-data/demo$demo_str";
+ // add buttons for language selection
echo <<<END
<h3>Example $demoID</h3>
<p>Select language to see the source code</p>
@@ -76,7 +83,7 @@
<input type="submit" name="lbind" value="Python" />
<input type="submit" name="lbind" value="Octave" />
<input type="submit" name="lbind" value="PerlDL" />
- <input type="submit" name="lbind" value="OCAML" />
+ <input type="submit" name="lbind" value="Ocaml" />
</form>
END;
@@ -91,15 +98,16 @@
case ("Python"): $fname = "xw" . $demo_str . ".py-"; break;
case ("Octave"): $fname = "x" . $demo_str . "c.m-"; break;
case ("PerlDL"): $fname = "x" . $demo_str . ".pl-"; break;
- case ("OCAML"): $fname = "x" . $demo_str . ".ocaml-"; break;
+ case ("Ocaml"): $fname = "x" . $demo_str . ".ml-"; break;
default: $fname = "x" . $demo_str . "c.c-";
}
+ // view code
echo "<object id=\"codebox\" type=\"text/plain\" data=\"$demo_dir/$fname\">\n";
echo "Your browser is not able to display text!\n</object>\n";
+ // show plots for chosen example
echo "<p>Select to view full-size image</p>\n";
-
echo "<p>\n";
for($ndx = 1; $ndx <= $nplots; ++$ndx) {
$ndx_str = sprintf ("%02d", $ndx);
@@ -110,6 +118,7 @@
}
echo "</p>\n";
+ // show credits if any
if($credits!="")
echo "<p>" . $credits . "</p>\n";
@@ -130,6 +139,7 @@
}
echo "</p>\n";
} else {
+ // display plots if all examples
echo <<<END
<h3>Examples</h3>
<p>These examples were generated with the pngcairo device and
@@ -139,14 +149,13 @@
END;
$count = 0;
foreach($demoArray as $drec) {
- $demo = sprintf ("%02d", $drec[0]);
- $dir = "demo$demo";
+ $demo_str = sprintf ("%02d", $drec[0]);
+ $dir = "demo$demo_str";
$thumbnail = sprintf ("%02d", $drec[2]);
$npages = $drec[1];
- $credits = $drec[3];
if($npages!=0) {
- echo "<a href=\"examples.php?demo=$demo\"><img border=\"0\" src=\"examples-data/$dir/prev-x$demo.$thumbnail.png\" /></a>\n";
+ echo "<a href=\"examples.php?demo=$demo_str\"><img border=\"0\" src=\"examples-data/$dir/prev-x$demo_str.$thumbnail.png\" /></a>\n";
$count++;
if(($count%3) == 0) echo "<br />\n";
}
@@ -156,6 +165,7 @@
</div>
</div>
+ <!-- include the page footer -->
<?php pageFooter(); ?>
</div>
Modified: trunk/www/index_new.php
===================================================================
--- trunk/www/index_new.php 2008-07-25 09:24:59 UTC (rev 8592)
+++ trunk/www/index_new.php 2008-07-25 11:47:48 UTC (rev 8593)
@@ -2,14 +2,17 @@
include "corefunctions.php";
?>
+<!-- include the html header -->
<?php pageHeader("Main"); ?>
<body>
<div id="pagewrapper">
+ <!-- create the menu, index is selected -->
<?php pageMenu("index"); ?>
+ <!-- the actual content of the page -->
<div id="contentwrapper">
<div id="leftside">
<h3>Introduction</h3>
@@ -17,35 +20,35 @@
plots.</p>
<p>PLplot can be used from within compiled languages such as C, C++, D,
FORTRAN and Java, and interactively from interpreted languages
- such as Octave, Python, Perl and Tcl.<br />
- The PLplot library can be used to create standard x-y plots, semilog plots,
+ such as Octave, Python, Perl and Tcl.</p>
+ <p>The PLplot library can be used to create standard x-y plots, semi-log plots,
log-log plots, contour plots, 3D surface plots, mesh plots, bar charts and
pie charts. Multiple graphs (of the same or different sizes) may be
- placed on a single page with multiple lines in each graph.<br />
- A variety of output file devices such as Postscript, png, jpeg
+ placed on a single page with multiple lines in each graph.</p>
+ <p>A variety of output file devices such as Postscript, png, jpeg
and others, as well as interactive devices such as xwin, tk,
xterm and Tektronics devices are supported. There are also interfaces
available to include the PLplot library in your application, e.g.
for <a href="http://www.wxwidgets.org">wxWidgets</a>. New devices can be easily
- added by writing a small number of device dependent routines.<br />
- PLplot has core support for unicode. This means plots can be labelled using
- the enormous selection of unicode mathematical symbols and simple text
+ added by writing a small number of device dependent routines.</p>
+ <p>PLplot has core support for Unicode. This means plots can be labelled using
+ the enormous selection of Unicode mathematical symbols and simple text
layout (left to right) language scripts for many of our devices. For our
cairo-related devices we also support complex text layout (CTL) languages
such as Arabic, Hebrew, and Indic and Indic-derived CTL scripts such as
- Devanagari, Thai, Lao, and Tibetan.<br />
- Some devices supports its own way of dealing with text,
- such as the Postscript driver, or the png and jpeg drivers that
- uses the Freetype library.</p>
+ Devanagari, Thai, Lao, and Tibetan.</p>
+ <p>Some devices support their own way of dealing with text,
+ such as the Postscript driver (using postscript fonts), or the png and jpeg drivers
+ (which use the Freetype library).</p>
<p>PLplot is free software primarily licensed under the
<a href="http://www.gnu.org/licenses/lgpl.html">LGPL</a>.</p>
<h3>Feature Summary</h3>
<div class="splitcontentleft">
- <h4>Cross Plattform</h4>
+ <h4>Cross Platform</h4>
<p>PLplot is currently known to work on following platforms:</p>
<ul class="arrowlist">
- <li>Linux and other Unices</li>
+ <li>Linux and other Unixes</li>
<li>Windows (2000, XP and Vista)</li>
<li>Mac OS X</li>
<li>MS-DOS (DJGPP)</li>
@@ -75,6 +78,7 @@
<div class="clear"></div>
+ <!-- show some plots using the lightbox js script -->
<h3>Screenshots</h3>
<p>
<a href="examples-data/demo03/x03.01.png" rel="lightbox[plplot]" title="Polar plot">
@@ -93,11 +97,13 @@
<p>You can find the code for these and other examples at the <a href="examples.php">examples page</a></p>
</div>
- <?php pageSidebar(0); ?>
+ <!-- add the sidebar, news displayed -->
+ <?php pageSidebar(1); ?>
<div id="spacer"></div>
</div>
+ <!-- include the page footer -->
<?php pageFooter(); ?>
</div>
Modified: trunk/www/template.php
===================================================================
--- trunk/www/template.php 2008-07-25 09:24:59 UTC (rev 8592)
+++ trunk/www/template.php 2008-07-25 11:47:48 UTC (rev 8593)
@@ -1,3 +1,4 @@
+<!-- This template can be used to create new pages -->
<?php
include "corefunctions.php";
?>
@@ -2,2 +3,3 @@
+<!-- include the html header -->
<?php pageHeader("Template"); ?>
@@ -8,6 +10,7 @@
<div id="pagewrapper">
+ <!-- create the menu, template is selected -->
<?php pageMenu("template"); ?>
<div id="contentwrapper">
@@ -16,11 +19,13 @@
<p>text</p>
</div>
+ <!-- add the sidebar, no news displayed -->
<?php pageSidebar(); ?>
<div id="spacer"></div>
</div>
+ <!-- include the page footer -->
<?php pageFooter(); ?>
</div>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|