You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(2) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(22) |
May
(52) |
Jun
(43) |
Jul
(36) |
Aug
(59) |
Sep
(37) |
Oct
(55) |
Nov
(39) |
Dec
(36) |
| 2005 |
Jan
(64) |
Feb
(40) |
Mar
(62) |
Apr
(58) |
May
(256) |
Jun
(77) |
Jul
(80) |
Aug
(39) |
Sep
(56) |
Oct
(36) |
Nov
(113) |
Dec
(68) |
| 2006 |
Jan
(43) |
Feb
(64) |
Mar
(69) |
Apr
(60) |
May
(71) |
Jun
(53) |
Jul
(63) |
Aug
(63) |
Sep
(76) |
Oct
(85) |
Nov
(82) |
Dec
(73) |
| 2007 |
Jan
(75) |
Feb
(82) |
Mar
(84) |
Apr
(104) |
May
(67) |
Jun
(101) |
Jul
(107) |
Aug
(138) |
Sep
(128) |
Oct
(106) |
Nov
(112) |
Dec
(112) |
| 2008 |
Jan
(94) |
Feb
(87) |
Mar
(146) |
Apr
(169) |
May
(75) |
Jun
(26) |
Jul
(26) |
Aug
(7) |
Sep
(18) |
Oct
(53) |
Nov
(42) |
Dec
(19) |
| 2009 |
Jan
(43) |
Feb
(39) |
Mar
(18) |
Apr
(45) |
May
(66) |
Jun
(87) |
Jul
(56) |
Aug
(41) |
Sep
(56) |
Oct
(139) |
Nov
(98) |
Dec
(88) |
| 2010 |
Jan
(81) |
Feb
(79) |
Mar
(83) |
Apr
(97) |
May
(124) |
Jun
(84) |
Jul
(53) |
Aug
(85) |
Sep
(89) |
Oct
(50) |
Nov
(98) |
Dec
(78) |
| 2011 |
Jan
(97) |
Feb
(74) |
Mar
(68) |
Apr
(54) |
May
(63) |
Jun
(59) |
Jul
(65) |
Aug
(58) |
Sep
(37) |
Oct
(40) |
Nov
(59) |
Dec
(35) |
| 2012 |
Jan
(16) |
Feb
(56) |
Mar
(63) |
Apr
(25) |
May
(48) |
Jun
(58) |
Jul
(20) |
Aug
(13) |
Sep
(43) |
Oct
(35) |
Nov
(20) |
Dec
(17) |
| 2013 |
Jan
(22) |
Feb
(11) |
Mar
(51) |
Apr
(34) |
May
(57) |
Jun
(27) |
Jul
(70) |
Aug
(30) |
Sep
(38) |
Oct
(53) |
Nov
(40) |
Dec
(25) |
| 2014 |
Jan
(26) |
Feb
(35) |
Mar
(60) |
Apr
(12) |
May
(17) |
Jun
(15) |
Jul
(9) |
Aug
(18) |
Sep
(46) |
Oct
(18) |
Nov
(19) |
Dec
(15) |
| 2015 |
Jan
(17) |
Feb
(28) |
Mar
(21) |
Apr
(54) |
May
(36) |
Jun
(8) |
Jul
(30) |
Aug
(13) |
Sep
(3) |
Oct
(28) |
Nov
(3) |
Dec
(3) |
| 2016 |
Jan
(11) |
Feb
(9) |
Mar
(29) |
Apr
(10) |
May
(8) |
Jun
(5) |
Jul
(50) |
Aug
(57) |
Sep
(13) |
Oct
(5) |
Nov
(17) |
Dec
(11) |
| 2017 |
Jan
(3) |
Feb
(23) |
Mar
(16) |
Apr
(7) |
May
(15) |
Jun
(12) |
Jul
(48) |
Aug
(15) |
Sep
(3) |
Oct
(20) |
Nov
(28) |
Dec
(21) |
| 2018 |
Jan
(13) |
Feb
(21) |
Mar
(21) |
Apr
(7) |
May
(3) |
Jun
(7) |
Jul
(27) |
Aug
(38) |
Sep
(4) |
Oct
(30) |
Nov
(22) |
Dec
|
| 2019 |
Jan
(5) |
Feb
(16) |
Mar
(1) |
Apr
(9) |
May
(7) |
Jun
(20) |
Jul
(13) |
Aug
(3) |
Sep
(2) |
Oct
(2) |
Nov
(2) |
Dec
(4) |
| 2020 |
Jan
(6) |
Feb
(11) |
Mar
(1) |
Apr
(18) |
May
(4) |
Jun
(5) |
Jul
(12) |
Aug
(1) |
Sep
(3) |
Oct
(7) |
Nov
(1) |
Dec
(17) |
| 2021 |
Jan
(1) |
Feb
(11) |
Mar
(16) |
Apr
(6) |
May
(5) |
Jun
(1) |
Jul
(1) |
Aug
(2) |
Sep
(8) |
Oct
(10) |
Nov
(4) |
Dec
(4) |
| 2022 |
Jan
(9) |
Feb
(35) |
Mar
(4) |
Apr
|
May
(3) |
Jun
(49) |
Jul
(11) |
Aug
|
Sep
(5) |
Oct
(2) |
Nov
(16) |
Dec
(13) |
| 2023 |
Jan
|
Feb
(8) |
Mar
(3) |
Apr
|
May
(8) |
Jun
|
Jul
(5) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(2) |
| 2024 |
Jan
(6) |
Feb
(9) |
Mar
|
Apr
(26) |
May
(24) |
Jun
|
Jul
(4) |
Aug
(2) |
Sep
(1) |
Oct
(10) |
Nov
(9) |
Dec
|
| 2025 |
Jan
|
Feb
(22) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
(4) |
| 2026 |
Jan
|
Feb
(24) |
Mar
(20) |
Apr
(18) |
May
(2) |
Jun
(2) |
Jul
(2) |
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Sam K. <Sam...@da...> - 2012-01-24 16:58:40
|
Hi, I'm using gnuplot (wgnuplot.exe) V4.1 on Windows7 Simple question - I use gnuplot to display basic data files, (e.g plot "1.txt" with lines), each time I type plot or splot, gnuplot generates the resulting graph in a separate window, however it always re-uses the same window, discarding any previous content. I really really really really want to display each graph in a NEW window, so if I enter ten plot commands I want to end up with ten graphs each in its own window. I'm not bothered about interacting with the plots (like zoom, rescaling etc), I just want to see more than one graph on the screen at the same time. Currently the only way I can figure do this is by running multiple copies of gnuplot (i.e. one per graph), but this doesn't work well when you need lots of graphs at the same time. Seems like such a simple thing I feel really stupid not being able to figure it out...... all suggestions welcome Thanks, Sam |
|
From: Becker, M. <M.B...@st...> - 2012-01-20 09:18:43
|
Hello altogether,
I'd like to test the release candidate on my Ubuntu 11.04 system (gcc
version 4.5.2). I configured without any special options.
I get errors related to wx, starting with:
c++ -DHAVE_CONFIG_H -I. -I.. -I../term -I../term -DBINDIR=
\"/usr/local/bin\" -DX11_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.6\"
-DQT_DRIVER_DIR=\"/usr/local/libexec/gnuplot/4.6\" -DGNUPLOT_SHARE_DIR=
\"/usr/local/share/gnuplot/4.6\" -DGNUPLOT_PS_DIR=
\"/usr/local/share/gnuplot/4.6/PostScript\" -DGNUPLOT_JS_DIR=
\"/usr/local/share/gnuplot/4.6/js\" -DGNUPLOT_LUA_DIR=
\"/usr/local/share/gnuplot/4.6/lua\" -DCONTACT=
\"gnu...@li...\" -DHELPFILE=
\"/usr/local/share/gnuplot/4.6/gnuplot.gih\" -DGNUPLOT_X11=\"`echo
gnuplot_x11 | sed 's,x,x,'`\" -DXAPPLRESDIR=\"/etc/X11/app-defaults/\"
-I/usr/include -pthread -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/cairo
-I/usr/include/pixman-1 -pthread -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/cairo
-I/usr/include/pixman-1 -g -O2
-I/usr/lib/wx/include/base-unicode-release-2.8 -I/usr/include/wx-2.8
-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DwxUSE_GUI=0 -pthread -pthread
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1
-pthread -I/usr/include/atk-1.0 -I/usr/include/pango-1.0
-I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pixman-1 -MT wxt_gui.o
-MD -MP -MF .deps/wxt_gui.Tpo -c -o wxt_gui.o `test -f
'wxterminal/wxt_gui.cpp' || echo './'`wxterminal/wxt_gui.cpp
In file included from wxterminal/wxt_gui.cpp:96:0:
wxterminal/wxt_gui.h:161:3: error: #error "wxt does not know if this
platform has to be mono- or multi-threaded"
In file included from wxterminal/wxt_gui.h:81:0,
from wxterminal/wxt_gui.cpp:96:
/usr/include/wx-2.8/wx/dataobj.h:95:26: error: ‘wxDataFormat’ does not
name a type
/usr/include/wx-2.8/wx/dataobj.h:131:13: error: ‘wxDataFormat’ does not
name a type
/usr/include/wx-2.8/wx/dataobj.h:137:32: error: ‘wxDataFormat’ has not
been declared
/usr/include/wx-2.8/wx/dataobj.h:141:38: error: ‘wxDataFormat’ does not
name a type
/usr/include/wx-2.8/wx/dataobj.h:141:52: error: ISO C++ forbids
declaration of ‘format’ with no type
/usr/include/wx-2.8/wx/dataobj.h:145:36: error: ‘wxDataFormat’ does not
name a type
/usr/include/wx-2.8/wx/dataobj.h:145:50: error: ISO C++ forbids
declaration of ‘format’ with no type
/usr/include/wx-2.8/wx/dataobj.h:149:32: error: ‘wxDataFormat’ does not
name a type
/usr/include/wx-2.8/wx/dataobj.h:149:44: error: ISO C++ forbids
declaration of ‘parameter’ with no type
/usr/include/wx-2.8/wx/dataobj.h:156:28: error: ‘wxDataFormat’ does not
name a type
/usr/include/wx-2.8/wx/dataobj.h:156:42: error: ISO C++ forbids
declaration of ‘format’ with no type
/usr/include/wx-2.8/wx/dataobj.h:198:1: error: expected class-name
before ‘{’ token
/usr/include/wx-2.8/wx/dataobj.h:202:30: error: ‘wxDataFormat’ does not
name a type
/usr/include/wx-2.8/wx/dataobj.h:202:53: error: ISO C++ forbids
declaration of ‘format’ with no type
/usr/include/wx-2.8/wx/dataobj.h:208:11: error: ‘wxDataFormat’ does not
name a type
/usr/include/wx-2.8/wx/dataobj.h:209:26: error: ‘wxDataFormat’ does not
name a type
/usr/include/wx-2.8/wx/dataobj.h:209:40: error: ISO C++ forbids
declaration of ‘format’ with no type
/usr/include/wx-2.8/wx/dataobj.h:229:13: error: ‘wxDataFormat’ does not
name a type
/usr/include/wx-2.8/wx/dataobj.h:233:32: error: ‘wxDataFormat’ has not
been declared
/usr/include/wx-2.8/wx/dataobj.h:236:38: error: ‘wxDataFormat’ does not
name a type
/usr/include/wx-2.8/wx/dataobj.h:236:50: error: ISO C++ forbids
declaration of ‘parameter’ with no type
/usr/include/wx-2.8/wx/dataobj.h:238:36: error: ‘wxDataFormat’ does not
name a type
/usr/include/wx-2.8/wx/dataobj.h:238:48: error: ISO C++ forbids
declaration of ‘parameter’ with no type
/usr/include/wx-2.8/wx/dataobj.h:241:32: error: ‘wxDataFormat’ does not
name a type
/usr/include/wx-2.8/wx/dataobj.h:241:44: error: ISO C++ forbids
declaration of ‘parameter’ with no type
/usr/include/wx-2.8/wx/dataobj.h:247:5: error: ‘wxDataFormat’ does not
name a type
/usr/include/wx-2.8/wx/dataobj.h:202:53: error: ‘wxFormatInvalid’ was
not declared in this scope
/usr/include/wx-2.8/wx/dataobj.h:231:79: error: ‘Get’ was not declared
in this scope
/usr/include/wx-2.8/wx/dataobj.h:234:76: error: ‘Get’ was not declared
in this scope
/usr/include/wx-2.8/wx/dataobj.h: In constructor
‘wxDataObjectSimple::wxDataObjectSimple(const int&)’:
/usr/include/wx-2.8/wx/dataobj.h:203:11: error: class
‘wxDataObjectSimple’ does not have any field named ‘m_format’
/usr/include/wx-2.8/wx/dataobj.h: In member function ‘void
wxDataObjectSimple::SetFormat(const int&)’:
/usr/include/wx-2.8/wx/dataobj.h:209:50: error: ‘m_format’ was not
declared in this scope
/usr/include/wx-2.8/wx/dataobj.h: In member function ‘virtual void
wxDataObjectSimple::GetAllFormats(int*, wxDataObjectBase::Direction)
const’:
output from 'cat config.log | grep -i wx':
----------------------
/tmp/ccwWx9R3.o: In function `main':
configure:11723: checking for wx-config
configure:11741: found /usr/bin/wx-config
configure:11754: result: /usr/bin/wx-config
config.status:1086: creating src/wxterminal/Makefile
configure:14941: result: wxt terminal: yes
ac_cv_path_WX_CONFIG=/usr/bin/wx-config
BUILD_WXWIDGETS_FALSE='#'
BUILD_WXWIDGETS_TRUE=''
CXXFLAGS='-g -O2 -I/usr/lib/wx/include/base-unicode-release-2.8
-I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES
-DwxUSE_GUI=0 -pthread -pthread -I/usr/include/glib-2.0
-I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/cairo
-I/usr/include/pixman-1 -pthread -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/
-I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/cairo
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pixman-1 '
WX_CONFIG='/usr/bin/wx-config'
WX_LIBS='-pthread -Wl,-Bsymbolic-functions -lwx_baseu_xml-2.8
-lwx_baseu_net-2.8 -lwx_baseu-2.8 -pthread -L/usr/lib/x86_64-linux-gnu
-lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0
-lgthread-2.0 -lrt -lglib-2.0 -pthread -L/usr/lib/x86_64-linux-gnu
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0
-lpangocairo-1.0 -lgdk_pixbuf-2.0 -lm -lcairo -lpango-1.0 -lfreetype
-lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0
'
#define WXWIDGETS 1
----------------------
and the output of 'dpkg -l | grep -i wx':
----------------------
ii libwxbase2.6-0 2.6.3.2.2-5ubuntu2
wxBase library (runtime) - non-GUI support classes of wxWidgets toolkit
ii libwxbase2.6-dev 2.6.3.2.2-5ubuntu2
wxBase library (development) - non-GUI support classes of wxWidgets
toolkit
ri libwxbase2.8-0 2.8.11.0-0ubuntu8.1
wxBase library (runtime) - non-GUI support classes of wxWidgets toolkit
ii libwxbase2.8-dev 2.8.11.0-0ubuntu8.1
wxBase library (development) - non-GUI support classes of wxWidgets
toolkit
ii libwxgtk2.6-0 2.6.3.2.2-5ubuntu2
wxWidgets Cross-platform C++ GUI toolkit (GTK+ runtime)
ii libwxgtk2.6-dev 2.6.3.2.2-5ubuntu2
wxWidgets Cross-platform C++ GUI toolkit (GTK+ development)
ri libwxgtk2.8-0 2.8.11.0-0ubuntu8.1
wxWidgets Cross-platform C++ GUI toolkit (GTK+ runtime)
ii libwxsvg0 1:1.0.7-0ubuntu1
C++ library to create, manipulate and render SVG files
ii python-wxglade 0.6.3+rel-4
GUI designer written in Python with wxPython
ii python-wxgtk2.8 2.8.11.0-0ubuntu8
wxWidgets Cross-platform C++ GUI toolkit (wxPython binding)
ii python-wxversion 2.8.11.0-0ubuntu8
wxWidgets Cross-platform C++ GUI toolkit (wxPython version selector)
ii wx2.6-headers 2.6.3.2.2-5ubuntu2
wxWidgets Cross-platform C++ GUI toolkit (header files)
ii wx2.8-headers 2.8.11.0-0ubuntu8.1
wxWidgets Cross-platform C++ GUI toolkit (header files)
ii wxmaxima 0.8.5-2
GUI for the computer algebra system Maxima
----------------------
I seem to have a mixture of wx 2.6 and 2.8 installed. Is that a problem?
Thanks for your help!
Martin
|
|
From: Junghun S. <nut...@li...> - 2012-01-19 11:47:00
|
Hi, everyone.
I want to control the size of canvas as well as that of figure. I found a solution for 2d plot and could adapt it to fit my need. But the same script does not work when I changed 'plot' command to 'splot' with pm3d. What am I missing?
I put the scripts at the bottom and eps files generated. First one is for 2d and is working well. The other is for 3d and is not working as I expected.
The difference between them is just:
+set pm3d map
-plot sin(x) ls 1
+splot sin(x) with pm3d
To run the script, perl is necessary. I'm using it to calculate the ratio, dimension of canvas and figure.
I'm using perl v5.12.3 built for MSWin32-x86-multi-thread (Strawberry Perl).
I'm running Matsuoka's MinGW build 4.5 patchlevel 0 in Windows 7 SP1, x64.
[1st script: fixedCanvasSize.TemplateFor2DPlot.plt.pl]
#!/usr/bin/env perl
#2d plot with fixed canvas size
# Embedding gnuplot script inside perl script.
# Below is the verbatim comment by the original author.
# -------------------------------------------------------
# Generate postscript and png plot with GNUplot from Perl
# Author: Ioan Vancea
# Usage: Give "data file" as an argument for script
# -------------------------------------------------------
# Note: no argument necessary. (Jan 19, 2012)
use strict;
use warnings;
my $XDim=170;
my $YDim=160;
my $CanvasRatio = $YDim/$XDim;
my $FigPaddingInch = 0.1;
#Size of canvas and figure is determined with the width of canvas, canvas ratio and padding.
my $FigCanvasXInch = 1.2;
my $FigCanvasYInch = sprintf("%.2f", $FigCanvasXInch * $CanvasRatio);
my $FigXInch = $FigCanvasXInch + 2 * $FigPaddingInch;
my $FigYInch = $FigCanvasYInch + 2 * $FigPaddingInch;
my $FigLineWidth = 0.8;
my $FigLineWidthInch = 0.8/72; #linewidth is in pt. Divide it by 72 to convert it to inch.
my $FigLinestyleWidth = 1.5;
#my $file = $ARGV[0]; #I simply didn't use it.
my $OutFn="fixedCanvasSize.TemplateFor2DPlot";
print "ratio: $CanvasRatio\n";
print "FigLineWidth: $FigLineWidth\n";
print "Canvas size: ($FigCanvasXInch, $FigCanvasYInch)\n";
print "Fig size: ($FigXInch, $FigYInch)\n";
# POSTSCRIPT
open (GNUPLOT, "|gnuplot");
print GNUPLOT <<EOF_PLOT;
#Using multiplot to fix the canvas size.
#Suggested by THeo in
#http://objectmix.com/graphics/139180-fixed-graph-box-size.html
reset
set size ratio $CanvasRatio
set origin 0,0
set term postscript eps enhanced \\
"Helvetica, 8" \\
color nobackground \\
dashlength 1.0 linewidth $FigLineWidth \\
butt size $FigXInch, $FigYInch
#LineSetting
set linestyle 1 lc rgb "#cc0000" lw $FigLinestyleWidth lt 1 #Scarlet Red 2
set linestyle 2 lc rgb "#73d216" lw $FigLinestyleWidth lt 2 #Chameleon 2
set linestyle 3 lc rgb "#3465a4" lw $FigLinestyleWidth lt 3 #Sky Blue 2
set linestyle 4 lc rgb "#75507b" lw $FigLinestyleWidth lt 4 #Plum 2
set linestyle 5 lc rgb "#729fcf" lw $FigLinestyleWidth lt 5 #Sky Blue 1 (light)
set linestyle 6 lc rgb "#edd400" lw $FigLinestyleWidth lt 6 #Butter 2
set linestyle 7 lc rgb "#f57900" lw $FigLinestyleWidth lt 7 #Orange 2
set linestyle 8 lc rgb "#d3d7cf" lw $FigLinestyleWidth lt 1 #Aluminium 2
#GridLineSetting
set linestyle 9 lc rgb "#d3d7cf" lw 0.5 lt 2 #Aluminium 2
set grid ls 9 back
set linestyle 10 lc rgb "#000000" lw 2*$FigLineWidth lt 1 #Aluminium 2
set output "$OutFn.eps"
set multiplot
set size $FigCanvasXInch/$FigXInch, $FigCanvasYInch/$FigYInch
OriginX = 2*$FigPaddingInch-$FigLineWidthInch
OriginY = OriginX
set origin OriginX/$FigXInch, OriginY/$FigYInch
set lmargin 0
set rmargin 0
set tmargin 0
set bmargin 0
set xtics out right scale 0.5 #right-alignment to keep labels from overflowing.
set ytics out scale 0.5 #scale <%f> to shorten the length of tic bar.
#Custom color box
set colorbox vertical user origin graph 0.1, 0.1 size graph 0.05, 0.25 front border 10 #Position at bottom left of the figure, size is small.
set cbtics out 1 nomirror scale 0.5
plot sin(x) ls 1
unset multiplot
EOF_PLOT
close(GNUPLOT);
#~ my $ret = `epstopdf $OutFn.eps`;
#~ my $ret = `convert -density 600x600 $OutFn.eps -compress LZW $OutFn.tif`;
#~ print "Convert returned $ret.\n";
[END of 1st script]
[2nd script: fixedCanvasSize.TemplateForPM3DPlot.plt.pl]
#!/usr/bin/env perl
#pm3d plot with fixed canvas size
# Embedding gnuplot script inside perl script.
# Below is the verbatim comment by the original author.
# -------------------------------------------------------
# Generate postscript and png plot with GNUplot from Perl
# Author: Ioan Vancea
# Usage: Give "data file" as an argument for script
# -------------------------------------------------------
# Note: no argument necessary. (Jan 19, 2012)
use strict;
use warnings;
my $XDim=170;
my $YDim=160;
my $CanvasRatio = $YDim/$XDim;
my $FigPaddingInch = 0.1;
#Size of canvas and figure is determined with the width of canvas, canvas ratio and padding.
my $FigCanvasXInch = 1.2;
my $FigCanvasYInch = sprintf("%.2f", $FigCanvasXInch * $CanvasRatio);
my $FigXInch = $FigCanvasXInch + 2 * $FigPaddingInch;
my $FigYInch = $FigCanvasYInch + 2 * $FigPaddingInch;
my $FigLineWidth = 0.8;
my $FigLineWidthInch = 0.8/72; #linewidth is in pt. Divide it by 72 to convert it to inch.
my $FigLinestyleWidth = 1.5;
#my $file = $ARGV[0]; #I simply didn't use it.
my $OutFn="fixedCanvasSize.TemplateForPM3DPlot";
print "ratio: $CanvasRatio\n";
print "FigLineWidth: $FigLineWidth\n";
print "Canvas size: ($FigCanvasXInch, $FigCanvasYInch)\n";
print "Fig size: ($FigXInch, $FigYInch)\n";
# POSTSCRIPT
open (GNUPLOT, "|gnuplot");
print GNUPLOT <<EOF_PLOT;
#Using multiplot to fix the canvas size.
#Suggested by THeo in
#http://objectmix.com/graphics/139180-fixed-graph-box-size.html
reset
set size ratio $CanvasRatio
set origin 0,0
set term postscript eps enhanced \\
"Helvetica, 8" \\
color nobackground \\
dashlength 1.0 linewidth $FigLineWidth \\
butt size $FigXInch, $FigYInch
#LineSetting
set linestyle 1 lc rgb "#cc0000" lw $FigLinestyleWidth lt 1 #Scarlet Red 2
set linestyle 2 lc rgb "#73d216" lw $FigLinestyleWidth lt 2 #Chameleon 2
set linestyle 3 lc rgb "#3465a4" lw $FigLinestyleWidth lt 3 #Sky Blue 2
set linestyle 4 lc rgb "#75507b" lw $FigLinestyleWidth lt 4 #Plum 2
set linestyle 5 lc rgb "#729fcf" lw $FigLinestyleWidth lt 5 #Sky Blue 1 (light)
set linestyle 6 lc rgb "#edd400" lw $FigLinestyleWidth lt 6 #Butter 2
set linestyle 7 lc rgb "#f57900" lw $FigLinestyleWidth lt 7 #Orange 2
set linestyle 8 lc rgb "#d3d7cf" lw $FigLinestyleWidth lt 1 #Aluminium 2
#GridLineSetting
set linestyle 9 lc rgb "#d3d7cf" lw 0.5 lt 2 #Aluminium 2
set grid ls 9 back
set linestyle 10 lc rgb "#000000" lw 2*$FigLineWidth lt 1 #Aluminium 2
set output "$OutFn.eps"
set multiplot
set pm3d map
set size $FigCanvasXInch/$FigXInch, $FigCanvasYInch/$FigYInch
OriginX = 2*$FigPaddingInch-$FigLineWidthInch
OriginY = OriginX
set origin OriginX/$FigXInch, OriginY/$FigYInch
set lmargin 0
set rmargin 0
set tmargin 0
set bmargin 0
set xtics out right scale 0.5 #right-alignment to keep labels from overflowing.
set ytics out scale 0.5 #scale <%f> to shorten the length of tic bar.
#Custom color box
set colorbox vertical user origin graph 0.1, 0.1 size graph 0.05, 0.25 front border 10 #Position at bottom left of the figure, size is small.
set cbtics out 1 nomirror scale 0.5
splot sin(x) with pm3d
unset multiplot
EOF_PLOT
close(GNUPLOT);
#~ my $ret = `epstopdf $OutFn.eps`;
#~ my $ret = `convert -density 600x600 $OutFn.eps -compress LZW $OutFn.tif`;
#~ print "Convert returned $ret.\n";
[END of 2nd script]
Thanks in advance for any info.
Best,
Junghun Shin
[Please find figures here]
Fixing canvas size for 3d plots with pm3d.
https://skydrive.live.com/redir.aspx?cid=71d1ea4884739940&page=browse&resid=71D1EA4884739940!408&sc=Documents&authkey=!AN2PwaY3pfE0Adg&Bpub=SDX.SkyDrive&Bsrc=SkyMail
https://skydrive.live.com/redir.aspx?cid=71d1ea4884739940&page=browse&resid=71D1EA4884739940!408&sc=Documents&authkey=!AN2PwaY3pfE0Adg&Bpub=SDX.SkyDrive&Bsrc=SkyMail
|
|
From: antong <ant...@gm...> - 2012-01-14 08:45:21
|
Hi all, I managed to plot the data from a file using the dots style. The data is in the format: 1 2 7 2 5 6 3 9 8 4 6 3 Is it possible to select a dot/datapoint in the graph with the mouse and retrieve extra information? E.g. when I use the second column for the x values and the third column for the y values, I want to be able to select a point (e.g. 9,8) in the graph to find out which number (first column) it is. I know I could use the label option and use the first column as labels. However, this doesn't really work when using thousands of data points. The labels become unreadable and I only want to know the number for the points of interest. I hope it's possible and if not maybe there is a kind of workaround. Thanks for your help! Anton -- View this message in context: http://old.nabble.com/extract-information-from-datapoint-tp33135031p33135031.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Miguel Rubio-R. <mru...@gm...> - 2012-01-11 22:47:22
|
> I'm trying to plot a label over a pm3d surface. The pm3d overlays my > label. I just run into the same problem. To set a label on top, over or in front of a surface or plot, use the "front" option of the "set label" command. Miguel |
|
From: Thomas S. <t.s...@fz...> - 2012-01-05 13:45:21
|
Stemat <stefan.materne <at> physik.tu-muenchen.de> writes: > > > Hello everybody! > I have the following problem: > After a series of fits I want to summarize my fit results in a seperate plot > with every result of the parameter of the various fits depicted as a point. > Say my parameters are named a1....a7 for the fits I have (all have only one > parameter of interest) > I tried the following: > > plot '-' w p ls 2 > 1 a1 > 2 a2 > 3 a3 > 4 a4 > 5 a5 > 6 a6 > 7 a7 > e > > However, gnuplot just plots the points (0,1), > (1,2),(2,3),(3,4),(4,5),(5,6),(6,7) > > If I explicetly write > > plot '-' using 1:2 w p ls 2 > 1 a1 > 2 a2 > 3 a3 > 4 a4 > 5 a5 > 6 a6 > 7 a7 > e > > it says ' Skipping data file with no valid points' > The same happens if i don't try to draw my fitparameters, but explicetly set > the parameters befor, e.g. a1=3, a2=2, a3 =0,... > > So basically the questions: how do I plot parameters as data points? > > As a workaround I could also print the results into a table file and load > this again. How do I do that? > Using the logfile of the fit is not an option for me as there is too much > additional information which I would have to delete manually. > > I am using gnuplot 4.4 patchlevel 4 on a windows system. > > Thank you for your help! you can't plot the contents of variables by reading the variable names from a file inside a plot command. when reading from a file, the plot command expects numbers. you may write the fit parameters to a file after each individual fit and plot the data inside this file later. before the first fit open a file to print the fit parameters into with set print "some_filename" after each fit, save the fit parameters (e.g. a and b) with print a, b after the fits are done you have a data file containing all the fit parameters which you may plot plot "some_filename" using 0:1 |
|
From: Stemat <ste...@ph...> - 2012-01-05 11:08:19
|
Hello everybody! I have the following problem: After a series of fits I want to summarize my fit results in a seperate plot with every result of the parameter of the various fits depicted as a point. Say my parameters are named a1....a7 for the fits I have (all have only one parameter of interest) I tried the following: plot '-' w p ls 2 1 a1 2 a2 3 a3 4 a4 5 a5 6 a6 7 a7 e However, gnuplot just plots the points (0,1), (1,2),(2,3),(3,4),(4,5),(5,6),(6,7) If I explicetly write plot '-' using 1:2 w p ls 2 1 a1 2 a2 3 a3 4 a4 5 a5 6 a6 7 a7 e it says ' Skipping data file with no valid points' The same happens if i don't try to draw my fitparameters, but explicetly set the parameters befor, e.g. a1=3, a2=2, a3 =0,... So basically the questions: how do I plot parameters as data points? As a workaround I could also print the results into a table file and load this again. How do I do that? Using the logfile of the fit is not an option for me as there is too much additional information which I would have to delete manually. I am using gnuplot 4.4 patchlevel 4 on a windows system. Thank you for your help! -- View this message in context: http://old.nabble.com/Plotting-parameters-as-data-points-tp33084756p33084756.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2011-12-29 18:08:37
|
On 29.12.2011 18:39, Jon wrote: > fil.'L8' u 1:s w l ti 'AA N=8', \ > ###### fil.'L8' u 1:s+7 w l ti 'GWF N=8', \ > fil.'L10000' u 1:s+7 w l ti 'GA' > > But it complains "invalid character \" at the end of the 4th line. > > This seems to me that comment within plot statement cannot be recognized, More to the point, comments inside a continued line won't do what you expect. gnuplot behaves the same as just about every Unix-style command line scripting language supporting '#' comments and '\' line continuation does: first, line continuation is resolved, resulting in a single long line. Then comments are evaluated. So comments inside a continued line will turn off everything following the '#', including stuff on later lines. |
|
From: Jon <dev...@gm...> - 2011-12-29 17:39:52
|
Dear All,
Wish you a happy New year first!
I tried to plot something like the following (noticing the comment on the
5th line)
p fil.'L10000' u 1:s w l ti 'AA N=10^{4}', \
fil.'L100' u 1:s w l ti 'AA N=100', \
fil.'L16' u 1:s w l ti 'AA N=16', \
fil.'L8' u 1:s w l ti 'AA N=8', \
###### fil.'L8' u 1:s+7 w l ti 'GWF N=8', \
fil.'L10000' u 1:s+7 w l ti 'GA'
But it complains "invalid character \" at the end of the 4th line.
This seems to me that comment within plot statement cannot be recognized,
is this really the case?
Thanks,
Jon
|
|
From: Daniel T. <dan...@si...> - 2011-12-28 12:29:51
|
Hi! I am new to Gnuplot and I try create a "stacked" histogram from some output of my application. Currently I use the following code: > set boxwidth 1.00 > set style fill solid 1.00 border -1 > set key autotitle columnheader > set key invert reverse Left outside > set yrange [0:*] > set xrange [0:*] > set auto x > unset xtics > set style data histogram > set style histogram rowstacked > set ylabel "Counts" > set xlabel "File Index" I then plot the histogram via the following command: > gnuplot.exe "histogram.pl" -e "set title 'Some Title'" -e "set yrange > [0:*]" -e "set terminal png size 1024,768" -e "set output > 'output.png'" -e "plot 'input.dat' using 2:xtic(1), for [i=%6:%7] '' > using i" The file "input.dat" is generated by my application. It looks like this: > No Correct Incorrect Lost Embedded > 0 7 0 11 18 > 1 9 0 1 10 > 2 46 2 0 48 > 3 11 9 30 50 > [...] The output from Gnuplot already looks like what I had intended: http://img684.imageshack.us/img684/1310/messager44100b64jsetup1.png Now my question: How can I change the colors? I can change the order of the columns in my .dat file, yes. But ideally I would like to assign each column (and thus each part of a histogram bar) a specific color. Is that possible with Gnuplot? Also, I would also like to create a "grey-scale" version of the stacked histogram, using different patterns rather than different colors. If possible, how would I do that? Thanks a lot in advance! Regards, Daniel. |
|
From: Tatsuro M. <tma...@ya...> - 2011-12-27 21:40:14
|
Hello I think that further question is better to be made in Cygwin ML but not here because it has no problem for my gnuplot on cygwin. (My environment is Windows 7 Home Premium 64 bit) Regards Tatsuro --- On Wed, 2011/12/28, De Gyves wrote: > $ echo plot x|/usr/bin/gnuplot -p > 1366x768.V1366x768.F2.D1x1.[C24/32] > > It exits immediately. > > I have also tried reinstallig cygwin yesterday but the problem persists. > > My OS is Windows 7 Ultimate. > > When I run "plot x" under gnuplot its behavior is as expected. > > Also my GGI_DISPLAY environment variable is set to "display-directx: > -fullscreen", and I also have tried without fullscreen mode with the same > result. > > The resolution for the ggi window is 1366x768 > On Tue, Dec 27, 2011 at 3:33 AM, Tatsuro MATSUOKA <tma...@ya...>wrote: > > > Hello > > > > Not > > echo plot x |gnuplot > > but > > echo plot x |gnuplot -p > > or > > echo plot x | /usr/bin/gnuplot -p > > > > Please try the above. > > For me, they work as expected. > > > > Regards > > > > Tatsuro > > > > > > --- On Tue, 2011/12/27, De Gyves <de...@gm...> wrote: > > > > > Yes, "which gnuplot" returns /usr/bin/gnuplot. > > > > > > > > > > > > Also tried echo plot x |gnuplot and the plot windows closes immediately. > > > > > > > > > > > > It's the gnuplot installed by cygwin. > > > ---------- Forwarded message ---------- > > > From: De Gyves <de...@gm...> > > > Date: Mon, Dec 26, 2011 at 9:15 AM > > > Subject: Re: [Gnuplot-info] Feed data gnuplot from stdin won't pause for > > > display port ( -persist and pause tried already) > > > To: Tatsuro MATSUOKA <tma...@ya...> > > > > > > > > > Yes, "which gnuplot" returns /usr/bin/gnuplot. > > > > > > Also tried echo plot x |gnuplot and the plot windows closes immediately. > > > > > > It's the gnuplot installed by cygwin. > > > > > > On Fri, Dec 23, 2011 at 3:10 PM, Tatsuro MATSUOKA < > > tma...@ya...>wrote: > > > > > > > Hello > > > > > > > > I have tried > > > > echo plot x | gnuplot -p > > > > on cygwin. > > > > The plot remained after gnuplot was finished. > > > > Did you really use cygwin version gnuplot? > > > > If you use windows native gnuplot, gnuplot will close immediately. > > > > > > > > Regards > > > > > > > > Tatsuro > > > > > > > > --- On Sat, 2011/12/24, De Gyves wrote: > > > > > > > > > I'm trying to show a plot by feeding gnuplot from stdin using libggi > > > > (using > > > > > display-directx) but gnuplots immediately closes the plot window > > even if > > > > I > > > > > use -persist. Any ideas? > > > > > > > > > > My gnuplot version is 4.4 patchlevel 4 > > > > > I'm using cygwin, libGGI and display-directx > > > > > > > > > > Example: > > > > > > > > > > ./derivate | gnuplot -p -e "unset logscale y; plot '-' using 1:2 > > > > every::2" > > > > > > > > > > gnuplot shows the plot window but immediately closes it and ends. > > > > > > > > > > Also with pause: > > > > > > > > > > ./derivate|gnuplot -p -e "unset logscale y; plot '-' using 1:2 > > every::2; > > > > > pause -1" > > > > > > > > > > The same problem persist. Maybe I'm doing something wrong? > > > > > > > > > > -- > > > > > Víctor-Polo de Gyvés Montero. > > > > > (55) 55 4483 6189 (Cellphone in Mexico city) > > > > > Address: Independencia street & Morelos avenue, Segunda Sección, > > > > > ZIP: 70000, Juchitán, Oaxaca, México. > > > > > > > > > > http://degyves.googlepages.com > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > Write once. Port to many. > > > > > Get the SDK and tools to simplify cross-platform app development. > > Create > > > > > new or port existing apps to sell to consumers worldwide. Explore the > > > > > Intel AppUpSM program developer opportunity. > > appdeveloper.intel.com/join > > > > > http://p.sf.net/sfu/intel-appdev > > > > > _______________________________________________ > > > > > gnuplot-info mailing list > > > > > gnu...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > > > > > > > > > > > > > > > > > > > -- > > > Víctor-Polo de Gyvés Montero. > > > (55) 55 4483 6189 (Cellphone in Mexico city) > > > Address: Independencia street & Morelos avenue, Segunda Sección, > > > ZIP: 70000, Juchitán, Oaxaca, México. > > > > > > http://degyves.googlepages.com > > > > > > > > > > > > > > > -- > > > Víctor-Polo de Gyvés Montero. > > > (55) 55 4483 6189 (Cellphone in Mexico city) > > > Address: Independencia street & Morelos avenue, Segunda Sección, > > > ZIP: 70000, Juchitán, Oaxaca, México. > > > > > > http://degyves.googlepages.com > > > > > ------------------------------------------------------------------------------ > > > Write once. Port to many. > > > Get the SDK and tools to simplify cross-platform app development. Create > > > new or port existing apps to sell to consumers worldwide. Explore the > > > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > > > http://p.sf.net/sfu/intel-appdev > > > _______________________________________________ > > > gnuplot-info mailing list > > > gnu...@li... > > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > > > > > > > -- > Víctor-Polo de Gyvés Montero. > (55) 55 4483 6189 (Cellphone in Mexico city) > Address: Independencia street & Morelos avenue, Segunda Sección, > ZIP: 70000, Juchitán, Oaxaca, México. > > http://degyves.googlepages.com > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: De G. <de...@gm...> - 2011-12-27 16:28:16
|
$ echo plot x|/usr/bin/gnuplot -p 1366x768.V1366x768.F2.D1x1.[C24/32] It exits immediately. I have also tried reinstallig cygwin yesterday but the problem persists. My OS is Windows 7 Ultimate. When I run "plot x" under gnuplot its behavior is as expected. Also my GGI_DISPLAY environment variable is set to "display-directx: -fullscreen", and I also have tried without fullscreen mode with the same result. The resolution for the ggi window is 1366x768 On Tue, Dec 27, 2011 at 3:33 AM, Tatsuro MATSUOKA <tma...@ya...>wrote: > Hello > > Not > echo plot x |gnuplot > but > echo plot x |gnuplot -p > or > echo plot x | /usr/bin/gnuplot -p > > Please try the above. > For me, they work as expected. > > Regards > > Tatsuro > > > --- On Tue, 2011/12/27, De Gyves <de...@gm...> wrote: > > > Yes, "which gnuplot" returns /usr/bin/gnuplot. > > > > > > > > Also tried echo plot x |gnuplot and the plot windows closes immediately. > > > > > > > > It's the gnuplot installed by cygwin. > > ---------- Forwarded message ---------- > > From: De Gyves <de...@gm...> > > Date: Mon, Dec 26, 2011 at 9:15 AM > > Subject: Re: [Gnuplot-info] Feed data gnuplot from stdin won't pause for > > display port ( -persist and pause tried already) > > To: Tatsuro MATSUOKA <tma...@ya...> > > > > > > Yes, "which gnuplot" returns /usr/bin/gnuplot. > > > > Also tried echo plot x |gnuplot and the plot windows closes immediately. > > > > It's the gnuplot installed by cygwin. > > > > On Fri, Dec 23, 2011 at 3:10 PM, Tatsuro MATSUOKA < > tma...@ya...>wrote: > > > > > Hello > > > > > > I have tried > > > echo plot x | gnuplot -p > > > on cygwin. > > > The plot remained after gnuplot was finished. > > > Did you really use cygwin version gnuplot? > > > If you use windows native gnuplot, gnuplot will close immediately. > > > > > > Regards > > > > > > Tatsuro > > > > > > --- On Sat, 2011/12/24, De Gyves wrote: > > > > > > > I'm trying to show a plot by feeding gnuplot from stdin using libggi > > > (using > > > > display-directx) but gnuplots immediately closes the plot window > even if > > > I > > > > use -persist. Any ideas? > > > > > > > > My gnuplot version is 4.4 patchlevel 4 > > > > I'm using cygwin, libGGI and display-directx > > > > > > > > Example: > > > > > > > > ./derivate | gnuplot -p -e "unset logscale y; plot '-' using 1:2 > > > every::2" > > > > > > > > gnuplot shows the plot window but immediately closes it and ends. > > > > > > > > Also with pause: > > > > > > > > ./derivate|gnuplot -p -e "unset logscale y; plot '-' using 1:2 > every::2; > > > > pause -1" > > > > > > > > The same problem persist. Maybe I'm doing something wrong? > > > > > > > > -- > > > > Víctor-Polo de Gyvés Montero. > > > > (55) 55 4483 6189 (Cellphone in Mexico city) > > > > Address: Independencia street & Morelos avenue, Segunda Sección, > > > > ZIP: 70000, Juchitán, Oaxaca, México. > > > > > > > > http://degyves.googlepages.com > > > > > > > > ------------------------------------------------------------------------------ > > > > Write once. Port to many. > > > > Get the SDK and tools to simplify cross-platform app development. > Create > > > > new or port existing apps to sell to consumers worldwide. Explore the > > > > Intel AppUpSM program developer opportunity. > appdeveloper.intel.com/join > > > > http://p.sf.net/sfu/intel-appdev > > > > _______________________________________________ > > > > gnuplot-info mailing list > > > > gnu...@li... > > > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > > > > > > > > > > > > > -- > > Víctor-Polo de Gyvés Montero. > > (55) 55 4483 6189 (Cellphone in Mexico city) > > Address: Independencia street & Morelos avenue, Segunda Sección, > > ZIP: 70000, Juchitán, Oaxaca, México. > > > > http://degyves.googlepages.com > > > > > > > > > > -- > > Víctor-Polo de Gyvés Montero. > > (55) 55 4483 6189 (Cellphone in Mexico city) > > Address: Independencia street & Morelos avenue, Segunda Sección, > > ZIP: 70000, Juchitán, Oaxaca, México. > > > > http://degyves.googlepages.com > > > ------------------------------------------------------------------------------ > > Write once. Port to many. > > Get the SDK and tools to simplify cross-platform app development. Create > > new or port existing apps to sell to consumers worldwide. Explore the > > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > > http://p.sf.net/sfu/intel-appdev > > _______________________________________________ > > gnuplot-info mailing list > > gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > -- Víctor-Polo de Gyvés Montero. (55) 55 4483 6189 (Cellphone in Mexico city) Address: Independencia street & Morelos avenue, Segunda Sección, ZIP: 70000, Juchitán, Oaxaca, México. http://degyves.googlepages.com |
|
From: Tatsuro M. <tma...@ya...> - 2011-12-27 09:34:07
|
Hello Not echo plot x |gnuplot but echo plot x |gnuplot -p or echo plot x | /usr/bin/gnuplot -p Please try the above. For me, they work as expected. Regards Tatsuro --- On Tue, 2011/12/27, De Gyves <de...@gm...> wrote: > Yes, "which gnuplot" returns /usr/bin/gnuplot. > > > > Also tried echo plot x |gnuplot and the plot windows closes immediately. > > > > It's the gnuplot installed by cygwin. > ---------- Forwarded message ---------- > From: De Gyves <de...@gm...> > Date: Mon, Dec 26, 2011 at 9:15 AM > Subject: Re: [Gnuplot-info] Feed data gnuplot from stdin won't pause for > display port ( -persist and pause tried already) > To: Tatsuro MATSUOKA <tma...@ya...> > > > Yes, "which gnuplot" returns /usr/bin/gnuplot. > > Also tried echo plot x |gnuplot and the plot windows closes immediately. > > It's the gnuplot installed by cygwin. > > On Fri, Dec 23, 2011 at 3:10 PM, Tatsuro MATSUOKA <tma...@ya...>wrote: > > > Hello > > > > I have tried > > echo plot x | gnuplot -p > > on cygwin. > > The plot remained after gnuplot was finished. > > Did you really use cygwin version gnuplot? > > If you use windows native gnuplot, gnuplot will close immediately. > > > > Regards > > > > Tatsuro > > > > --- On Sat, 2011/12/24, De Gyves wrote: > > > > > I'm trying to show a plot by feeding gnuplot from stdin using libggi > > (using > > > display-directx) but gnuplots immediately closes the plot window even if > > I > > > use -persist. Any ideas? > > > > > > My gnuplot version is 4.4 patchlevel 4 > > > I'm using cygwin, libGGI and display-directx > > > > > > Example: > > > > > > ./derivate | gnuplot -p -e "unset logscale y; plot '-' using 1:2 > > every::2" > > > > > > gnuplot shows the plot window but immediately closes it and ends. > > > > > > Also with pause: > > > > > > ./derivate|gnuplot -p -e "unset logscale y; plot '-' using 1:2 every::2; > > > pause -1" > > > > > > The same problem persist. Maybe I'm doing something wrong? > > > > > > -- > > > Víctor-Polo de Gyvés Montero. > > > (55) 55 4483 6189 (Cellphone in Mexico city) > > > Address: Independencia street & Morelos avenue, Segunda Sección, > > > ZIP: 70000, Juchitán, Oaxaca, México. > > > > > > http://degyves.googlepages.com > > > > > ------------------------------------------------------------------------------ > > > Write once. Port to many. > > > Get the SDK and tools to simplify cross-platform app development. Create > > > new or port existing apps to sell to consumers worldwide. Explore the > > > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > > > http://p.sf.net/sfu/intel-appdev > > > _______________________________________________ > > > gnuplot-info mailing list > > > gnu...@li... > > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > > > > > > > -- > Víctor-Polo de Gyvés Montero. > (55) 55 4483 6189 (Cellphone in Mexico city) > Address: Independencia street & Morelos avenue, Segunda Sección, > ZIP: 70000, Juchitán, Oaxaca, México. > > http://degyves.googlepages.com > > > > > -- > Víctor-Polo de Gyvés Montero. > (55) 55 4483 6189 (Cellphone in Mexico city) > Address: Independencia street & Morelos avenue, Segunda Sección, > ZIP: 70000, Juchitán, Oaxaca, México. > > http://degyves.googlepages.com > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: De G. <de...@gm...> - 2011-12-26 15:17:02
|
Yes, "which gnuplot" returns /usr/bin/gnuplot. Also tried echo plot x |gnuplot and the plot windows closes immediately. It's the gnuplot installed by cygwin. ---------- Forwarded message ---------- From: De Gyves <de...@gm...> Date: Mon, Dec 26, 2011 at 9:15 AM Subject: Re: [Gnuplot-info] Feed data gnuplot from stdin won't pause for display port ( -persist and pause tried already) To: Tatsuro MATSUOKA <tma...@ya...> Yes, "which gnuplot" returns /usr/bin/gnuplot. Also tried echo plot x |gnuplot and the plot windows closes immediately. It's the gnuplot installed by cygwin. On Fri, Dec 23, 2011 at 3:10 PM, Tatsuro MATSUOKA <tma...@ya...>wrote: > Hello > > I have tried > echo plot x | gnuplot -p > on cygwin. > The plot remained after gnuplot was finished. > Did you really use cygwin version gnuplot? > If you use windows native gnuplot, gnuplot will close immediately. > > Regards > > Tatsuro > > --- On Sat, 2011/12/24, De Gyves wrote: > > > I'm trying to show a plot by feeding gnuplot from stdin using libggi > (using > > display-directx) but gnuplots immediately closes the plot window even if > I > > use -persist. Any ideas? > > > > My gnuplot version is 4.4 patchlevel 4 > > I'm using cygwin, libGGI and display-directx > > > > Example: > > > > ./derivate | gnuplot -p -e "unset logscale y; plot '-' using 1:2 > every::2" > > > > gnuplot shows the plot window but immediately closes it and ends. > > > > Also with pause: > > > > ./derivate|gnuplot -p -e "unset logscale y; plot '-' using 1:2 every::2; > > pause -1" > > > > The same problem persist. Maybe I'm doing something wrong? > > > > -- > > Víctor-Polo de Gyvés Montero. > > (55) 55 4483 6189 (Cellphone in Mexico city) > > Address: Independencia street & Morelos avenue, Segunda Sección, > > ZIP: 70000, Juchitán, Oaxaca, México. > > > > http://degyves.googlepages.com > > > ------------------------------------------------------------------------------ > > Write once. Port to many. > > Get the SDK and tools to simplify cross-platform app development. Create > > new or port existing apps to sell to consumers worldwide. Explore the > > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > > http://p.sf.net/sfu/intel-appdev > > _______________________________________________ > > gnuplot-info mailing list > > gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > > -- Víctor-Polo de Gyvés Montero. (55) 55 4483 6189 (Cellphone in Mexico city) Address: Independencia street & Morelos avenue, Segunda Sección, ZIP: 70000, Juchitán, Oaxaca, México. http://degyves.googlepages.com -- Víctor-Polo de Gyvés Montero. (55) 55 4483 6189 (Cellphone in Mexico city) Address: Independencia street & Morelos avenue, Segunda Sección, ZIP: 70000, Juchitán, Oaxaca, México. http://degyves.googlepages.com |
|
From: Thomas S. <t.s...@fz...> - 2011-12-24 12:44:02
|
in a two-step process it's possible. after plotting for the 1st time (e.g. into the 'dumb' terminal) set the ytics (here: 8 tics): set ytics GPVAL_Y_MIN,(GPVAL_Y_MAX-GPVAL_Y_MIN)/7.,GPVAL_Y_MAX set y2tics GPVAL_Y2_MIN,(GPVAL_Y2_MAX-GPVAL_Y2_MIN)/7.,GPVAL_Y2_MAX replot chessat2002 wrote: > > Hi! > > My problem is the following: > I'm generating plots using 2 y-axis each. For these plots I use the > autoscale-option for the y-ranges. This is no problem so far but I also > want to set the number of tics on each axis to a constant value. This is > because I want to use one grid for the whole plotting area that matches > the tics on both axis. > So, is it possible define a constant number of tics for the y-axis (not an > increment)? > > Thanks! > > Alex' > -- View this message in context: http://old.nabble.com/Using-constant-number-of-ytics-tp33022650p33033421.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Tatsuro M. <tma...@ya...> - 2011-12-23 21:10:11
|
Hello I have tried echo plot x | gnuplot -p on cygwin. The plot remained after gnuplot was finished. Did you really use cygwin version gnuplot? If you use windows native gnuplot, gnuplot will close immediately. Regards Tatsuro --- On Sat, 2011/12/24, De Gyves wrote: > I'm trying to show a plot by feeding gnuplot from stdin using libggi (using > display-directx) but gnuplots immediately closes the plot window even if I > use -persist. Any ideas? > > My gnuplot version is 4.4 patchlevel 4 > I'm using cygwin, libGGI and display-directx > > Example: > > ./derivate | gnuplot -p -e "unset logscale y; plot '-' using 1:2 every::2" > > gnuplot shows the plot window but immediately closes it and ends. > > Also with pause: > > ./derivate|gnuplot -p -e "unset logscale y; plot '-' using 1:2 every::2; > pause -1" > > The same problem persist. Maybe I'm doing something wrong? > > -- > Víctor-Polo de Gyvés Montero. > (55) 55 4483 6189 (Cellphone in Mexico city) > Address: Independencia street & Morelos avenue, Segunda Sección, > ZIP: 70000, Juchitán, Oaxaca, México. > > http://degyves.googlepages.com > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: De G. <de...@gm...> - 2011-12-23 17:34:17
|
I'm trying to show a plot by feeding gnuplot from stdin using libggi (using display-directx) but gnuplots immediately closes the plot window even if I use -persist. Any ideas? My gnuplot version is 4.4 patchlevel 4 I'm using cygwin, libGGI and display-directx Example: ./derivate | gnuplot -p -e "unset logscale y; plot '-' using 1:2 every::2" gnuplot shows the plot window but immediately closes it and ends. Also with pause: ./derivate|gnuplot -p -e "unset logscale y; plot '-' using 1:2 every::2; pause -1" The same problem persist. Maybe I'm doing something wrong? -- Víctor-Polo de Gyvés Montero. (55) 55 4483 6189 (Cellphone in Mexico city) Address: Independencia street & Morelos avenue, Segunda Sección, ZIP: 70000, Juchitán, Oaxaca, México. http://degyves.googlepages.com |
|
From: Thomas S. <t.s...@fz...> - 2011-12-20 18:37:23
|
when starting gnuplot, some information is printed. the last line tells which terminal is used. what's written there? 'unkonwn'? After I enter the splot command into the linux terminal, nothing happens. I'd expect a new window to open with the plot? Is this related to the configuration of Linux (ubuntu, on my pc), or do i need to enter a different command for the plot to actually appear? Thomas Sefzick wrote: > > set datafile separator "," > splot "data.csv" with lines > -- View this message in context: http://old.nabble.com/Plotting-3D-data-from-text-file-tp32984319p33011317.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: igalis <Igo...@gm...> - 2011-12-20 18:22:16
|
After I enter the splot command into the linux terminal, nothing happens. I'd expect a new window to open with the plot? Is this related to the configuration of Linux (ubuntu, on my pc), or do i need to enter a different command for the plot to actually appear? set datafile separator "," splot "data.csv" with lines -- View this message in context: http://old.nabble.com/Plotting-3D-data-from-text-file-tp32984319p33011200.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2011-12-19 23:27:25
|
On 19.12.2011 18:09, Babou42800 wrote: > That is to say, I would like to have an automatic 'factorization' by a > common power of 10, put for instance on the top of a graph, for each value > of the y-axis. This seems to be possible, but how to do it? It's possible, but not automatically. What you can do is, e.g. set label '* 10^5' at graph -0.05, graph 0.95 plot 'data' using 1:($2/1.0e5) I.e. divide the data by the power of ten you need, then indicate the rescaling by a text label. |
|
From: Babou42800 <emb...@gm...> - 2011-12-19 17:09:26
|
Hello, I have tried to find the commands (during several hours and on numerous websites) to reproduce the format of the y-axis on the following picture: http://old.nabble.com/file/p33004139/Output.jpg That is to say, I would like to have an automatic 'factorization' by a common power of 10, put for instance on the top of a graph, for each value of the y-axis. This seems to be possible, but how to do it? Thank you in advance for any help. -- View this message in context: http://old.nabble.com/How-to-automatically-scale-an-axis-in-function-of-a-power-of-10-tp33004139p33004139.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Thomas S. <t.s...@fz...> - 2011-12-19 17:02:04
|
without knowing what your data look like, one remark:
"<awk 'NR<2 {print $3}' plot1.dat" ls 1 lt rgb "#FF0000"
plots a data point, while
5000 ls 1 lt rgb "#FF0000"
plots a (constant) function.
chessat2002 wrote:
>
> hi guys!
>
> i'm currently working with histograms in gnuplot. here is a snipet of my
> plotting script:
>
> # plot histogram, captions and red line
> plot 'plot1.dat' using 3:xtic(1) ls 1 lt rgb "#0000FF",\
> '' using 2:($3+500):($3) with labels font ",8",\
> "<awk 'NR<2 {print $3}' plot1.dat" ls 1 lt rgb "#FF0000"
>
> in this script i plot the bars (1st line), captions over the bars (2nd
> line) and in the 3rd line, i would like to print a solid line at the
> height of the first bar in the plot. the awk-command extracts a singe
> number from my file. unfortunately it does not print a single line here,
> it prints a second bar at the first x position. if i replace the
> awk-command with a constant number (see the following snipet), then it
> works.
>
> # plot histogram, captions and red line
> plot 'plot1.dat' using 3:xtic(1) ls 1 lt rgb "#0000FF",\
> '' using 2:($3+500):($3) with labels font ",8",\
> 5000 ls 1 lt rgb "#FF0000"
>
>
> Thanks for your help and your time!
>
> Alex'
>
>
--
View this message in context: http://old.nabble.com/problem-with-awk-in-plot-tp33001247p33004047.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: walter h. <wh...@bf...> - 2011-12-16 10:45:43
|
Hi igalis, please be aware that "," is a bad separator since other countries use it where the english use a ".", more over it does not improve readability of the files. just my two cents, i stumbled over that problem some time ago re, wh Am 16.12.2011 10:52, schrieb Thomas Sefzick: > > define the data separator if it's not a space. > enclose the filename in quotes because it's a string. > use 'splot' for 3d plots. > > set datafile separator "," > splot "data.csv" with lines > > > igalis wrote: >> >> Hi, >> >> I'm new to GNUPlot and Linux. >> >> I have a text file with three columns of data, as follows. The third >> column is a function of the variables in the third and second column. >> >> -0.2,-1.2,160.182739208 >> >> I cannot figure out how to create a simple 3d graph of this function using >> GNUPlot. Typing "gnuplot>plot data.csv with lines" results in an error. >> How do I make it so that GNUPlot reads and graphs the file correctly? >> >> Thank you for your time! >> > |
|
From: Thomas S. <t.s...@fz...> - 2011-12-16 09:52:13
|
define the data separator if it's not a space. enclose the filename in quotes because it's a string. use 'splot' for 3d plots. set datafile separator "," splot "data.csv" with lines igalis wrote: > > Hi, > > I'm new to GNUPlot and Linux. > > I have a text file with three columns of data, as follows. The third > column is a function of the variables in the third and second column. > > -0.2,-1.2,160.182739208 > > I cannot figure out how to create a simple 3d graph of this function using > GNUPlot. Typing "gnuplot>plot data.csv with lines" results in an error. > How do I make it so that GNUPlot reads and graphs the file correctly? > > Thank you for your time! > -- View this message in context: http://old.nabble.com/Plotting-3D-data-from-text-file-tp32984319p32986641.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Zoltán <zv...@gm...> - 2011-12-12 16:09:58
|
<bosa-fwd <at> gmx.de> writes: > Hi everybody! > I want to plot the function f(x)=a*x^2+b*x several times - each time with a different set of parameters. The > parameters are stored in a csv file. > > Does anybody know how to do that? I wasn't able to figure it out with the gnuplot docs. > > Thanks for your help! > squard > There is a hack described in http://gnuplot-tricks.blogspot.com/2010/02/parametric-plot-from-file-ii.html If you are really pressed for it, you could check that out. I hope this helps, Zoltán |