r41815 - in /trunk/libchart-gnuplot-perl: ./ debian/ examples/ lib/Chart/
carnil-guest at users.alioth.debian.org
carnil-guest at users.alioth.debian.org
Fri Aug 14 08:38:43 UTC 2009
Author: carnil-guest
Date: Fri Aug 14 08:38:37 2009
New Revision: 41815
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=41815
Log:
* New upstream release
- Add new plotting styles "hbars" (horizontal bars) and "hlines"
(horizontal lines).
Added:
trunk/libchart-gnuplot-perl/examples/list.html
- copied unchanged from r41814, branches/upstream/libchart-gnuplot-perl/current/examples/list.html
trunk/libchart-gnuplot-perl/examples/main.html
- copied unchanged from r41814, branches/upstream/libchart-gnuplot-perl/current/examples/main.html
trunk/libchart-gnuplot-perl/examples/plotStyle_14.pl
- copied unchanged from r41814, branches/upstream/libchart-gnuplot-perl/current/examples/plotStyle_14.pl
trunk/libchart-gnuplot-perl/examples/plotStyle_15.pl
- copied unchanged from r41814, branches/upstream/libchart-gnuplot-perl/current/examples/plotStyle_15.pl
Modified:
trunk/libchart-gnuplot-perl/Changes
trunk/libchart-gnuplot-perl/MANIFEST
trunk/libchart-gnuplot-perl/META.yml
trunk/libchart-gnuplot-perl/debian/changelog
trunk/libchart-gnuplot-perl/examples/Makefile
trunk/libchart-gnuplot-perl/examples/index.html
trunk/libchart-gnuplot-perl/examples/plotStyle_13.pl
trunk/libchart-gnuplot-perl/lib/Chart/Gnuplot.pm
Modified: trunk/libchart-gnuplot-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libchart-gnuplot-perl/Changes?rev=41815&op=diff
==============================================================================
--- trunk/libchart-gnuplot-perl/Changes (original)
+++ trunk/libchart-gnuplot-perl/Changes Fri Aug 14 08:38:37 2009
@@ -1,4 +1,9 @@
Change log for Chart::Gnuplot
+
+0.11
+ - Add new plotting styles "hbars" (horizontal bars) and "hlines"
+ (horizontal lines)
+ - Add frame to the example webpage
0.10
- Support "every" and "index" features
Modified: trunk/libchart-gnuplot-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libchart-gnuplot-perl/MANIFEST?rev=41815&op=diff
==============================================================================
--- trunk/libchart-gnuplot-perl/MANIFEST (original)
+++ trunk/libchart-gnuplot-perl/MANIFEST Fri Aug 14 08:38:37 2009
@@ -88,6 +88,8 @@
examples/plotStyle_11.pl
examples/plotStyle_12.pl
examples/plotStyle_13.pl
+examples/plotStyle_14.pl
+examples/plotStyle_15.pl
examples/range_1.pl
examples/range_2.pl
examples/range_3.pl
@@ -105,6 +107,8 @@
examples/ticFmt_12.pl
examples/ticFmt_13.pl
examples/index.html
+examples/list.html
+examples/main.html
examples/dataSrc_3.dat
examples/plot3d_3.dat
t/axisLabel.t
Modified: trunk/libchart-gnuplot-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libchart-gnuplot-perl/META.yml?rev=41815&op=diff
==============================================================================
--- trunk/libchart-gnuplot-perl/META.yml (original)
+++ trunk/libchart-gnuplot-perl/META.yml Fri Aug 14 08:38:37 2009
@@ -1,6 +1,6 @@
--- #YAML:1.0
name: Chart-Gnuplot
-version: 0.10
+version: 0.11
abstract: Plot graph using Gnuplot on the fly
author:
- Ka-Wai Mak
Modified: trunk/libchart-gnuplot-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libchart-gnuplot-perl/debian/changelog?rev=41815&op=diff
==============================================================================
--- trunk/libchart-gnuplot-perl/debian/changelog (original)
+++ trunk/libchart-gnuplot-perl/debian/changelog Fri Aug 14 08:38:37 2009
@@ -1,3 +1,11 @@
+libchart-gnuplot-perl (0.11-1) UNRELEASED; urgency=low
+
+ * New upstream release
+ - Add new plotting styles "hbars" (horizontal bars) and "hlines"
+ (horizontal lines).
+
+ -- Salvatore Bonaccorso <salvatore.bonaccorso at gmail.com> Fri, 14 Aug 2009 10:36:29 +0200
+
libchart-gnuplot-perl (0.10-1) unstable; urgency=low
[ Nathan Handler ]
Modified: trunk/libchart-gnuplot-perl/examples/Makefile
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libchart-gnuplot-perl/examples/Makefile?rev=41815&op=diff
==============================================================================
--- trunk/libchart-gnuplot-perl/examples/Makefile (original)
+++ trunk/libchart-gnuplot-perl/examples/Makefile Fri Aug 14 08:38:37 2009
@@ -82,6 +82,8 @@
plotStyle_11.png \
plotStyle_12.png \
plotStyle_13.png \
+plotStyle_14.png \
+plotStyle_15.png \
range_1.png \
range_2.png \
range_3.png \
Modified: trunk/libchart-gnuplot-perl/examples/index.html
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libchart-gnuplot-perl/examples/index.html?rev=41815&op=diff
==============================================================================
--- trunk/libchart-gnuplot-perl/examples/index.html (original)
+++ trunk/libchart-gnuplot-perl/examples/index.html Fri Aug 14 08:38:37 2009
@@ -1,613 +1,6 @@
<html>
-<head>
-<title>Demo codes for Chart::Gnuplot</title>
-<style type="text/css">
-td {background-color:#E6E6E6; padding-left:0.5cm; padding-right:0.5cm;
- padding-top:0.1cm; padding-bottom:0.1cm;}
-</style>
-</head>
-
-<center>
-<h1>
-Demo codes for Chart::Gnuplot
-</h1>
-</center>
-
-<!-- ----- Data source ----- -->
-<h2 style="color:green">Data source</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Perl arrays of x coordinates and y coordinates</td>
-<td align="center"><a href="dataSrc_1.pl">script</a></td>
-<td align="center"><a href="gallery/dataSrc_1.png">sample image</a></td>
-</tr>
-<tr>
-<td>Perl array of x-y pairs</td>
-<td align="center"><a href="dataSrc_2.pl">script</a></td>
-<td align="center"><a href="gallery/dataSrc_2.png">sample image</a></td>
-</tr>
-<tr>
-<td>Data file (space delimited)</td>
-<td align="center"><a href="dataSrc_3.pl">script</a></td>
-<td align="center"><a href="gallery/dataSrc_3.png">sample image</a></td>
-</tr>
-<tr>
-<td>Mathematical function</td>
-<td align="center"><a href="dataSrc_4.pl">script</a></td>
-<td align="center"><a href="gallery/dataSrc_4.png">sample image</a></td>
-</tr>
-<tr>
-<td>Parametric function</td>
-<td align="center"><a href="dataSrc_5.pl">script</a></td>
-<td align="center"><a href="gallery/dataSrc_5.png">sample image</a></td>
-</tr>
-<tr>
-<td>Mixed data source</td>
-<td align="center"><a href="dataSrc_6.pl">script</a></td>
-<td align="center"><a href="gallery/dataSrc_6.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- >Basic chart formatting ----- -->
-<h2 style="color:green">Basic chart formatting</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Add a chart title</td>
-<td align="center"><a href="chartFmt_1.pl">script</a></td>
-<td align="center"><a href="gallery/chartFmt_1.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Add axis labels</td>
-<td align="center"><a href="chartFmt_2.pl">script</a></td>
-<td align="center"><a href="gallery/chartFmt_2.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Add legend</td>
-<td align="center"><a href="chartFmt_3.pl">script</a></td>
-<td align="center"><a href="gallery/chartFmt_3.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Add grid lines</td>
-<td align="center"><a href="chartFmt_4.pl">script</a></td>
-<td align="center"><a href="gallery/chartFmt_4.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- 2D plotting styles ----- -->
-<h2 style="color:green">2D plotting styles</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Lines, points and points on lines</td>
-<td align="center"><a href="plotStyle_1.pl">script</a></td>
-<td align="center"><a href="gallery/plotStyle_1.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Dots</td>
-<td align="center"><a href="plotStyle_2.pl">script</a></td>
-<td align="center"><a href="gallery/plotStyle_2.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Impulses</td>
-<td align="center"><a href="plotStyle_3.pl">script</a></td>
-<td align="center"><a href="gallery/plotStyle_3.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Boxes</td>
-<td align="center"><a href="plotStyle_4.pl">script</a></td>
-<td align="center"><a href="gallery/plotStyle_4.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Fill the boxes</td>
-<td align="center"><a href="plotStyle_5.pl">script</a></td>
-<td align="center"><a href="gallery/plotStyle_5.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Join with steps, fsteps and histeps</td>
-<td align="center"><a href="plotStyle_6.pl">script</a></td>
-<td align="center"><a href="gallery/plotStyle_6.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Filled the curves</td>
-<td align="center"><a href="plotStyle_7.pl">script</a></td>
-<td align="center"><a href="gallery/plotStyle_7.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Error bar styles</td>
-<td align="center"><a href="plotStyle_8.pl">script</a></td>
-<td align="center"><a href="gallery/plotStyle_8.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Error line styles</td>
-<td align="center"><a href="plotStyle_9.pl">script</a></td>
-<td align="center"><a href="gallery/plotStyle_9.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Styles of combination of boxes and error bars</td>
-<td align="center"><a href="plotStyle_10.pl">script</a></td>
-<td align="center"><a href="gallery/plotStyle_10.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Finance bar style</td>
-<td align="center"><a href="plotStyle_11.pl">script</a></td>
-<td align="center"><a href="gallery/plotStyle_11.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Candle stick style</td>
-<td align="center"><a href="plotStyle_12.pl">script</a></td>
-<td align="center"><a href="gallery/plotStyle_12.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Smooth the line segments joining data points</td>
-<td align="center"><a href="plotStyle_13.pl">script</a></td>
-<td align="center"><a href="gallery/plotStyle_13.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- Line and point styles ----- -->
-<h2 style="color:green">Line and point styles</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Line and point color</td>
-<td align="center"><a href="lineStyle_1.pl">script</a></td>
-<td align="center"><a href="gallery/lineStyle_1.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Line type</td>
-<td align="center"><a href="lineStyle_2.pl">script</a></td>
-<td align="center"><a href="gallery/lineStyle_2.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Line width</td>
-<td align="center"><a href="lineStyle_3.pl">script</a></td>
-<td align="center"><a href="gallery/lineStyle_3.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Point type</td>
-<td align="center"><a href="lineStyle_4.pl">script</a></td>
-<td align="center"><a href="gallery/lineStyle_4.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Point size</td>
-<td align="center"><a href="lineStyle_5.pl">script</a></td>
-<td align="center"><a href="gallery/lineStyle_5.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- Range of the plot ----- -->
-<h2 style="color:green">Range of the plot</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>User-specified range of the plot</td>
-<td align="center"><a href="range_1.pl">script</a></td>
-<td align="center"><a href="gallery/range_1.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Semi-autoscale</td>
-<td align="center"><a href="range_2.pl">script</a></td>
-<td align="center"><a href="gallery/range_2.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Range of parametric parameter</td>
-<td align="center"><a href="range_3.pl">script</a></td>
-<td align="center"><a href="gallery/range_3.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- Formatting the chart title ----- -->
-<h2 style="color:green">Formatting the chart title</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Use default settings</td>
-<td align="center"><a href="chartTitle_1.pl">script</a></td>
-<td align="center"><a href="gallery/chartTitle_1.png">sample image</a></td>
-</tr>
-<tr>
-<td>Location</td>
-<td align="center"><a href="chartTitle_2.pl">script</a></td>
-<td align="center"><a href="gallery/chartTitle_2.png">sample image</a></td>
-</tr>
-<tr>
-<td>Font</td>
-<td align="center"><a href="chartTitle_3.pl">script</a></td>
-<td align="center"><a href="gallery/chartTitle_3.png">sample image</a></td>
-</tr>
-<tr>
-<td>Font and font size</td>
-<td align="center"><a href="chartTitle_4.pl">script</a></td>
-<td align="center"><a href="gallery/chartTitle_4.png">sample image</a></td>
-</tr>
-<tr>
-<td>Font color</td>
-<td align="center"><a href="chartTitle_5.pl">script</a></td>
-<td align="center"><a href="gallery/chartTitle_5.png">sample image</a></td>
-</tr>
-<tr>
-<td>Superscript and subscript</td>
-<td align="center"><a href="chartTitle_6.pl">script</a></td>
-<td align="center"><a href="gallery/chartTitle_6.png">sample image</a></td>
-</tr>
-<tr>
-<td>Greek letters</td>
-<td align="center"><a href="chartTitle_7.pl">script</a></td>
-<td align="center"><a href="gallery/chartTitle_7.png">sample image</a></td>
-</tr>
-<tr>
-<td>Composite example</td>
-<td align="center"><a href="chartTitle_8.pl">script</a></td>
-<td align="center"><a href="gallery/chartTitle_9.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- Formatting the axis label ----- -->
-<h2 style="color:green">Formatting the axis label</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Use default settings</td>
-<td align="center"><a href="axisLabel_1.pl">script</a></td>
-<td align="center"><a href="gallery/axisLabel_1.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Location</td>
-<td align="center"><a href="axisLabel_2.pl">script</a></td>
-<td align="center"><a href="gallery/axisLabel_2.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Rotated text</td>
-<td align="center"><a href="axisLabel_3.pl">script</a></td>
-<td align="center"><a href="gallery/axisLabel_3.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Font</td>
-<td align="center"><a href="axisLabel_4.pl">script</a></td>
-<td align="center"><a href="gallery/axisLabel_4.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Font and font size</td>
-<td align="center"><a href="axisLabel_5.pl">script</a></td>
-<td align="center"><a href="gallery/axisLabel_5.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Font color</td>
-<td align="center"><a href="axisLabel_6.pl">script</a></td>
-<td align="center"><a href="gallery/axisLabel_6.png">sample image</a></td>
-</tr>
-<tr>
-<td>Superscript and subscript</td>
-<td align="center"><a href="axisLabel_7.pl">script</a></td>
-<td align="center"><a href="gallery/axisLabel_7.png">sample image</a></td>
-</tr>
-<tr>
-<td>Greek letters</td>
-<td align="center"><a href="axisLabel_8.pl">script</a></td>
-<td align="center"><a href="gallery/axisLabel_8.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- Formatting the axis tics ----- -->
-<h2 style="color:green">Formatting the axis tics</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Number of minor tics between consecutive major tics</td>
-<td align="center"><a href="ticFmt_1.pl">script</a></td>
-<td align="center"><a href="gallery/ticFmt_1.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Specify the tics to label</td>
-<td align="center"><a href="ticFmt_2.pl">script</a></td>
-<td align="center"><a href="gallery/ticFmt_2.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Re-label the tics</td>
-<td align="center"><a href="ticFmt_3.pl">script</a></td>
-<td align="center"><a href="gallery/ticFmt_3.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Tic label number format</td>
-<td align="center"><a href="ticFmt_4.pl">script</a></td>
-<td align="center"><a href="gallery/ticFmt_4.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Tic label font</td>
-<td align="center"><a href="ticFmt_5.pl">script</a></td>
-<td align="center"><a href="gallery/ticFmt_5.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Tic label font and font size</td>
-<td align="center"><a href="ticFmt_6.pl">script</a></td>
-<td align="center"><a href="gallery/ticFmt_6.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Tic label color</td>
-<td align="center"><a href="ticFmt_7.pl">script</a></td>
-<td align="center"><a href="gallery/ticFmt_7.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Location of the tic label</td>
-<td align="center"><a href="ticFmt_8.pl">script</a></td>
-<td align="center"><a href="gallery/ticFmt_8.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Rotate the tic label</td>
-<td align="center"><a href="ticFmt_9.pl">script</a></td>
-<td align="center"><a href="gallery/ticFmt_9.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Tic length</td>
-<td align="center"><a href="ticFmt_10.pl">script</a></td>
-<td align="center"><a href="gallery/ticFmt_10.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Remove the tics on the opposite axis</td>
-<td align="center"><a href="ticFmt_11.pl">script</a></td>
-<td align="center"><a href="gallery/ticFmt_11.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Turn on and off the tics</td>
-<td align="center"><a href="ticFmt_12.pl">script</a></td>
-<td align="center"><a href="gallery/ticFmt_12.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Composite example</td>
-<td align="center"><a href="ticFmt_13.pl">script</a></td>
-<td align="center"><a href="gallery/ticFmt_13.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- Formatting the grid lines ----- -->
-<h2 style="color:green">Formatting the grid lines</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Use default settings</td>
-<td align="center"><a href="grid_1.pl">script</a></td>
-<td align="center"><a href="gallery/grid_1.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Add minor grid lines</td>
-<td align="center"><a href="grid_2.pl">script</a></td>
-<td align="center"><a href="gallery/grid_2.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Line type</td>
-<td align="center"><a href="grid_3.pl">script</a></td>
-<td align="center"><a href="gallery/grid_3.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Line width</td>
-<td align="center"><a href="grid_4.pl">script</a></td>
-<td align="center"><a href="gallery/grid_4.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Color</td>
-<td align="center"><a href="grid_5.pl">script</a></td>
-<td align="center"><a href="gallery/grid_5.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Use another line type for minor grid</td>
-<td align="center"><a href="grid_6.pl">script</a></td>
-<td align="center"><a href="gallery/grid_6.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Use another line width for minor grid</td>
-<td align="center"><a href="grid_7.pl">script</a></td>
-<td align="center"><a href="gallery/grid_7.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Use another line color for minor grid</td>
-<td align="center"><a href="grid_8.pl">script</a></td>
-<td align="center"><a href="gallery/grid_8.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Composite example</td>
-<td align="center"><a href="grid_9.pl">script</a></td>
-<td align="center"><a href="gallery/grid_9.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- Formatting the legend ----- -->
-<h2 style="color:green">Formatting the legend</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Use default settings</td>
-<td align="center"><a href="legend_1.pl">script</a></td>
-<td align="center"><a href="gallery/legend_1.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Position</td>
-<td align="center"><a href="legend_2.pl">script</a></td>
-<td align="center"><a href="gallery/legend_2.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Add border</td>
-<td align="center"><a href="legend_3.pl">script</a></td>
-<td align="center"><a href="gallery/legend_3.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Format the border</td>
-<td align="center"><a href="legend_4.pl">script</a></td>
-<td align="center"><a href="gallery/legend_4.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Dimension</td>
-<td align="center"><a href="legend_5.pl">script</a></td>
-<td align="center"><a href="gallery/legend_5.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Legend title</td>
-<td align="center"><a href="legend_6.pl">script</a></td>
-<td align="center"><a href="gallery/legend_6.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Order of the sample lines</td>
-<td align="center"><a href="legend_7.pl">script</a></td>
-<td align="center"><a href="gallery/legend_7.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Alignment of the label</td>
-<td align="center"><a href="legend_8.pl">script</a></td>
-<td align="center"><a href="gallery/legend_8.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Format the sample lines</td>
-<td align="center"><a href="legend_9.pl">script</a></td>
-<td align="center"><a href="gallery/legend_9.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Composite example</td>
-<td align="center"><a href="legend_10.pl">script</a></td>
-<td align="center"><a href="gallery/legend_10.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- Formatting the graph borders ----- -->
-<h2 style="color:green">Formatting the graph borders</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Line type</td>
-<td align="center"><a href="border_1.pl">script</a></td>
-<td align="center"><a href="gallery/border_1.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Line width</td>
-<td align="center"><a href="border_2.pl">script</a></td>
-<td align="center"><a href="gallery/border_2.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Color</td>
-<td align="center"><a href="border_3.pl">script</a></td>
-<td align="center"><a href="gallery/border_3.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- Date and time data ----- -->
-<h2 style="color:green">Date and time data</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Date data</td>
-<td align="center"><a href="datetime_1.pl">script</a></td>
-<td align="center"><a href="gallery/datetime_1.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Time data</td>
-<td align="center"><a href="datetime_2.pl">script</a></td>
-<td align="center"><a href="gallery/datetime_2.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Change the date time format of the tic labels</td>
-<td align="center"><a href="datetime_3.pl">script</a></td>
-<td align="center"><a href="gallery/datetime_3.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- Plot on the secondary axes ----- -->
-<h2 style="color:green">Plot on the secondary axes</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Simple example</td>
-<td align="center"><a href="plotAxes_1.pl">script</a></td>
-<td align="center"><a href="gallery/plotAxes_1.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Composite example</td>
-<td align="center"><a href="plotAxes_2.pl">script</a></td>
-<td align="center"><a href="gallery/plotAxes_2.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- Chart dimension ----- -->
-<h2 style="color:green">Chart dimension</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Orientation</td>
-<td align="center"><a href="chartDim_1.pl">script</a></td>
-<td align="center"><a href="gallery/chartDim_1.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Image size</td>
-<td align="center"><a href="chartDim_2.pl">script</a></td>
-<td align="center"><a href="gallery/chartDim_2.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Margin</td>
-<td align="center"><a href="chartDim_3.pl">script</a></td>
-<td align="center"><a href="gallery/chartDim_3.png">sample image</a></td>
-</tr>
-</tr>
-</table>
-
-
-<!-- ----- Background color ----- -->
-<h2 style="color:green">Background color</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Background color of the chart</td>
-<td align="center"><a href="bg_1.pl">script</a></td>
-<td align="center"><a href="gallery/bg_1.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Background color of the plot area</td>
-<td align="center"><a href="bg_2.pl">script</a></td>
-<td align="center"><a href="gallery/bg_2.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- 3D plots ----- -->
-<h2 style="color:green">3D plots</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Plot from Perl arrays of x, y and z coordinates</td>
-<td align="center"><a href="plot3d_1.pl">script</a></td>
-<td align="center"><a href="gallery/plot3d_1.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Plot from Perl array of points</td>
-<td align="center"><a href="plot3d_2.pl">script</a></td>
-<td align="center"><a href="gallery/plot3d_2.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Plot from data file (space delimited)</td>
-<td align="center"><a href="plot3d_3.pl">script</a></td>
-<td align="center"><a href="gallery/plot3d_3.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Plot from function</td>
-<td align="center"><a href="plot3d_4.pl">script</a></td>
-<td align="center"><a href="gallery/plot3d_4.png">sample image</a></td>
-</tr>
-</table>
-
-
-<!-- ----- Multiplot ----- -->
-<h2 style="color:green">Multiplot</h2>
-<table border=0 width=100%>
-<tr>
-<td width=65%>Use array to define image layout</td>
-<td align="center"><a href="multiplot_1.pl">script</a></td>
-<td align="center"><a href="gallery/multiplot_1.png">sample image</a></td>
-</tr>
-<tr>
-<tr>
-<td width=65%>Inset graph</td>
-<td align="center"><a href="multiplot_2.pl">script</a></td>
-<td align="center"><a href="gallery/multiplot_2.png">sample image</a></td>
-</tr>
-<tr>
-<td width=65%>Composite example</td>
-<td align="center"><a href="multiplot_3.pl">script</a></td>
-<td align="center"><a href="gallery/multiplot_3.png">sample image</a></td>
-</tr>
-</table>
+<head><title>Demo codes for Chart::Gnuplot</title></head>
+<frameset cols="20%,*">
+<frame src="list.html">
+<frame src="main.html" name="main">
</html>
Modified: trunk/libchart-gnuplot-perl/examples/plotStyle_13.pl
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libchart-gnuplot-perl/examples/plotStyle_13.pl?rev=41815&op=diff
==============================================================================
--- trunk/libchart-gnuplot-perl/examples/plotStyle_13.pl (original)
+++ trunk/libchart-gnuplot-perl/examples/plotStyle_13.pl Fri Aug 14 08:38:37 2009
@@ -1,6 +1,8 @@
#!/usr/bin/perl -w
use strict;
use Chart::Gnuplot;
+
+# Demonstration of the horizontal bar style
# Initiate the chart object
my $chart = Chart::Gnuplot->new(
@@ -8,28 +10,21 @@
);
# Raw data
-my @x = (1, 2, 3, 4, 5, 6);
-my @y = (2, 8, 3, 2, 4, 0);
+# - Gaussian distribution
+my (@x, @y) = ();
+for (my $x = 0; $x < 5; $x += 0.1)
+{
+ my $y = exp(-$x*$x/2);
+ push(@x, $x);
+ push(@y, $y);
+}
-my $points = Chart::Gnuplot::DataSet->new(
- xdata => \@x,
- ydata => \@y,
- style => 'linespoints',
-);
-my $csplines = Chart::Gnuplot::DataSet->new(
- xdata => \@x,
- ydata => \@y,
- style => 'lines',
- smooth => 'csplines',
- title => 'Smoothed by cubic splines',
-);
-my $bezier = Chart::Gnuplot::DataSet->new(
- xdata => \@x,
- ydata => \@y,
- style => 'lines',
- smooth => 'bezier',
- title => 'Smoothed by a Bezier curve',
+# Data set object
+my $hbars = Chart::Gnuplot::DataSet->new(
+ xdata => \@x,
+ ydata => \@y,
+ style => "hbars",
);
# Plot the graph
-$chart->plot2d($points, $csplines, $bezier);
+$chart->plot2d($hbars);
Modified: trunk/libchart-gnuplot-perl/lib/Chart/Gnuplot.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libchart-gnuplot-perl/lib/Chart/Gnuplot.pm?rev=41815&op=diff
==============================================================================
--- trunk/libchart-gnuplot-perl/lib/Chart/Gnuplot.pm (original)
+++ trunk/libchart-gnuplot-perl/lib/Chart/Gnuplot.pm Fri Aug 14 08:38:37 2009
@@ -5,7 +5,7 @@
use File::Copy;
use File::Temp qw(tempdir);
use Chart::Gnuplot::Util qw(_lineType _pointType);
-$VERSION = '0.10';
+$VERSION = '0.11';
# Constructor
sub new
@@ -1354,6 +1354,42 @@
$using = "1:$yCol";
}
}
+ # Treatment for hbars
+ # - use "boxxyerrorbars" style to mimic
+ elsif (defined $self->{xdata} && defined $self->{style} &&
+ $self->{style} eq 'hbars')
+ {
+ my $xdata = $self->{xdata};
+ my $ylow = my $yhigh = $$ydata[0];
+ if (scalar(@$ydata) > 1)
+ {
+ $ylow = 0.5*(3*$$ydata[0]-$$ydata[1]);
+ $yhigh = 0.5*(3*$$ydata[-1]-$$ydata[-2]);
+ }
+
+ for (my $i = 0; $i < @$xdata; $i++)
+ {
+ $ylow = 0.5*($$ydata[$i]+$$ydata[$i-1]) if ($i > 0);
+ $yhigh = 0.5*($$ydata[$i]+$$ydata[$i+1]) if ($i < $#$ydata);
+ print DATA "0 $$ydata[$i] 0 $$xdata[$i] $ylow $yhigh\n";
+ }
+ $self->{style} = "boxxyerrorbars";
+ $string = "'$fileTmp'";
+ }
+ # Treatment for hlines
+ # - use "boxxyerrorbars" style to mimic
+ elsif (defined $self->{xdata} && defined $self->{style} &&
+ $self->{style} eq 'hlines')
+ {
+ my $xdata = $self->{xdata};
+ for (my $i = 0; $i < @$xdata; $i++)
+ {
+ print DATA "0 $$ydata[$i] 0 $$xdata[$i] $$ydata[$i] ".
+ "$$ydata[$i]\n";
+ }
+ $self->{style} = "boxxyerrorbars";
+ $string = "'$fileTmp'";
+ }
# Normal x-y plot
# - Both xdata and ydata are defined
elsif (defined $self->{xdata})
@@ -1430,9 +1466,40 @@
if (scalar(@{$$pt[0]}) == 2 ||
(defined $self->{style} && $self->{style} =~ /error/))
{
- for(my $i = 0; $i < @$pt; $i++)
- {
- print DATA join(" ", @{$$pt[$i]}), "\n";
+ # hlines plotting style
+ if (defined $self->{style} && $self->{style} eq 'hlines')
+ {
+ for(my $i = 0; $i < @$pt; $i++)
+ {
+ print DATA "0 $$pt[$i][1] 0 $$pt[$i][0] $$pt[$i][1] ".
+ "$$pt[$i][1]\n";
+ }
+ $self->{style} = "boxxyerrorbars";
+ }
+ # hbars plotting style
+ elsif (defined $self->{style} && $self->{style} eq 'hbars')
+ {
+ my $ylow = my $yhigh = $$pt[0][1];
+ if (scalar(@$pt) > 1)
+ {
+ $ylow = 0.5*(3*$$pt[0][1]-$$pt[1][1]);
+ $yhigh = 0.5*(3*$$pt[-1][1]-$$pt[-2][1]);
+ }
+
+ for(my $i = 0; $i < @$pt; $i++)
+ {
+ $ylow = 0.5*($$pt[$i][1]+$$pt[$i-1][1]) if ($i > 0);
+ $yhigh = 0.5*($$pt[$i][1]+$$pt[$i+1][1]) if ($i < $#$pt);
+ print DATA "0 $$pt[$i][1] 0 $$pt[$i][0] $ylow $yhigh\n";
+ }
+ $self->{style} = "boxxyerrorbars";
+ }
+ else
+ {
+ for(my $i = 0; $i < @$pt; $i++)
+ {
+ print DATA join(" ", @{$$pt[$i]}), "\n";
+ }
}
}
# 3D data points
@@ -1490,6 +1557,10 @@
$string = "$self->{func}";
}
}
+ else
+ {
+ croak("Unknown or undefined data source");
+ }
# Process the Gnuplot "using" feature
$using = $self->{using} if (defined $self->{using});
@@ -2159,6 +2230,8 @@
boxxyerrorbars : use rectangles to represent the data with errors
financebars : finance bars for open, high, low and close price
candlesticks : candle sticks for open, high, low and close price
+ hbars : horizontal bars (experimental)
+ hlines : horizontal lines (experimental)
=head3 color
@@ -2395,7 +2468,7 @@
=head1 TEST ENVIRONMENT
-This version is tested against Gnuplot 4.2.0 to 4.2.3 in Linux.
+This version is tested against Gnuplot 4.2.0 to 4.2.4 in Linux.
=head1 SEE ALSO
More information about the Pkg-perl-cvs-commits
mailing list