|
[Sponsors] |
what software you use for obtaining graphs by data? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 8, 2013, 07:44 |
|
#21 | |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Quote:
Code:
gnuplot> plot 'h1.dat' u 1:4 ti 'h1-Temperature' w l linestyle 1,"h2.dat" u 1:4 ti 'h2-Temperature' w l linestyle 2,"h3.dat" u 1:4 ti "h3-Temperature" with lp linestyle 3 ^ "T.plt", line 29: all points y value undefined!
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
||
September 8, 2013, 07:51 |
|
#22 | |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
But that works for another case with attached files.
Quote:
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
||
September 8, 2013, 08:09 |
|
#23 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
this error shown when I added "every" option,what may be the cause?
Code:
gnuplot> load "Ux.plt" gnuplot> plot 'h1.dat' u 1:7 ti 'h1-x_Velocity' w l linestyle 1,"h2.dat" u 1:7 ti 'h2-x_Velocity' w l linestyle 2,"h3.dat" u 1:7 ti "h3-x_Velocity" every 5 with p linestyle 3 ^ "Ux.plt", line 29: ';' expected gnuplot> gnuplot> load "Ux.plt" gnuplot> plot 'h1.dat' u 1:7 ti 'h1-x_Velocity' w l linestyle 1,"h2.dat" u 1:7 ti 'h2-x_Velocity' w l linestyle 2,"h3.dat" u 1:7 ti "h3-x_Velocity" every 5 with p linestyle 3 ^ "Ux.plt", line 29: ';' expected gnuplot> gnuplot> load "Ux.plt" gnuplot> plot 'h1.dat' u 1:7 ti 'h1-x_Velocity' w l linestyle 1,"h2.dat" u 1:7 ti 'h2-x_Velocity' w l linestyle 2,"h3.dat" u 1:7 ti "h3-x_Velocity" every 5 with p linestyle 3 ^ "Ux.plt", line 29: ';' expected
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 8, 2013, 09:53 |
|
#24 | |||
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
Quote:
Quote:
With the method I described, the line within the plot will be continuous and contain all data points, while there will only be few points to enhance visibility. Quote:
Not 100% sure about the correct sequence, so try one of the following Code:
plot 'h1.dat' u 1:7 w l linestyle 1 t 'h1-x_Velocity',"h2.dat" u 1:7 w l linestyle 2 t 'h2-x_Velocity',"h3.dat" every 5 u 1:7 with p linestyle 3 t "h3-x_Velocity" plot 'h1.dat' u 1:7 w l linestyle 1 t 'h1-x_Velocity',"h2.dat" u 1:7 w l linestyle 2 t 'h2-x_Velocity',"h3.dat" u 1:7 every 5 with p linestyle 3 t "h3-x_Velocity" |
||||
September 8, 2013, 10:29 |
|
#25 | |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Quote:
Code:
gnuplot> plot "p.plt" ^ Bad data on line 1
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
||
September 8, 2013, 10:39 |
|
#26 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
I don't have much time to spare today, so I can't play with gnuplot myself . Nonetheless, here are the instructions for installing the gnuplot documentation and example on Ubuntu:
Bruno
__________________
|
|
September 8, 2013, 11:48 |
|
#27 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
Hi
that resolved,the ranges wasn't appropriate, but I didn't grasp how to set linestyles to have lines and points concurrently and points be less.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 8, 2013, 12:55 |
|
#28 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
it resolved,thanks,
the attached is the result with this command: Code:
plot 'h1.dat' u 1:3 ti 'h1-pressure' w l linestyle 1,"h2.dat" u 1:3 ti 'h2-pressure' w l linestyle 2,"h3.dat" u 1:3 every 20 with lp linestyle 3 t "h3-pressure"
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 9, 2013, 06:46 |
|
#29 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
an issue is that the output page that graph is plotted on that has fixed size.
my data's are very high in numbers in x-axis side.I want my graph be wider without need to make it smaller in y-direction by size commands.I want to have a more wider page in fact rather than a smaller graph in the same page output. is there any way to change dimensions of output page? it seems it has compacted in x-direction now.
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 9, 2013, 09:25 |
|
#30 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
another issue is that is it possible to do some calculations on columns before plotting by gnuplot,like multiplying one column to another column and divide by a constant?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 9, 2013, 11:26 |
|
#31 | ||
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
Quote:
Code:
set terminal pngcairo size 1200, 600 Quote:
Code:
plot 'h1.dat' u 1:($2*5.0) |
|||
September 9, 2013, 12:22 |
|
#32 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thanks Alex,
how I should act if I want to for example subtract two columns in two data files from each other?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 9, 2013, 12:51 |
|
#33 |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
I have no idea, and apparently, there is no way to do this in gnuplot directly.
But google seems to know another way to do this if you search for "gnuplot compare two files" and hit the first result. You can be sure that EVERY question you might have concerning gnuplot has already been answered somewhere on the web. |
|
September 9, 2013, 13:27 |
|
#34 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
in this link:
http://objectmix.com/graphics/139945...le-figure.html it says to use: plot '< join fileA.dat fileB.dat' using 1:N+1
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 9, 2013, 13:50 |
|
#35 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
how can add all numbers in a column in gnuplot and the number of figures(for obtaining an average of them)?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 9, 2013, 14:08 |
|
#36 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
this page seems to have some information about averaging in gnuplot but is banned here
can anyone help to read the page or know about averaging in gnuplot? http://gnuplot-tricks.blogspot.com/
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 9, 2013, 15:37 |
|
#37 | |
Super Moderator
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,427
Rep Power: 49 |
http://www.phyast.pitt.edu/~zov1/gnu...tatistics.html
Quote:
|
||
September 9, 2013, 18:17 |
|
#38 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thanks Alex,then how I have to use averaging?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 9, 2013, 18:24 |
|
#39 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
I found this also,but isn't clear what have to do exactly.
http://www.manpagez.com/info/gnuplot...nuplot_419.php
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
September 11, 2013, 18:06 |
|
#40 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
how can draw two sided arrows for specifying a part of plot parallel to x-direction?(arrow be in x-axis to distinguish a part of plot over a period of time)
for example in the figure attached I want to distinct 0.0347 till 0.0355 by an arrow. (is there a way to send this type of figures as image?)
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King. To Be or Not To Be,Thats the Question! The Only Stupid Question Is the One that Goes Unasked. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Exporting data (cell values, ascii) and obtaining more data than cells! | TfG | FLUENT | 3 | April 3, 2015 01:18 |
CAD integrated CFD Software | kostikr | Main CFD Forum | 3 | February 4, 2010 15:38 |
IFStream read float point data problem | liu | OpenFOAM Running, Solving & CFD | 0 | October 24, 2008 13:14 |
How to update polyPatchbs localPoints | liu | OpenFOAM Running, Solving & CFD | 6 | December 30, 2005 18:27 |
Seeking for flow field (vector plot) visualization software. | Hua | Main CFD Forum | 7 | January 25, 1999 12:33 |