Science topic

# Gnuplot - Science topic

Explore the latest questions and answers in Gnuplot, and find Gnuplot experts.

Questions related to Gnuplot

I have zero experience using gnuplot and all I am trying to figure out is the meaning of the line I found on web, so that I can code it up using python.

gnuplot > p "kaccum.dat" i 30 u 1:2 w l, "kaccum.dat" i 30 u 1:8 w l

Can anyone please help me out to know how to get get the bond force constant from the calculated potential energy surface using GNUPLOT or using some other method?

It would be highly appreciated.

Thank you

Hi researchers,

I have used AMBER CPPTRAJ to generate dssp.gnu to view the 2D secondary structure of my protein throughout the molecular dynamic simulation using Gnuplot software. Unfortunately, the dssp.gnu file couldn't be able to open in Gnuplot software. Can anyone help me to fix this problem? I share the problem I faced when I tried to open the dssp.gnu file in the Gnuplot below.

kindly give me some suggestions to fix this problem. tq all!!

Hello,
I have the results for scattering rates, from epw software, but am wondering how I can plot the graphs of scattering rates as a function of energy as we have in this paper fig 1. https://www.nature.com/articles/s41467-021-22440-5
Kindly share some information I will be very grateful. I am using gnuplot
====================================================================
# Inverse scattering time (ps)
# ik ibnd E(ibnd) scattering rate(1/ps)
1 3 -0.29205368674922E+01 0.1404112602437623E+002
1 4 -0.29204177603800E+01 0.7328995342445310E+002
1 5 0.33364740729340E+01 0.1817640794169847E+003
2 3 -0.29205368674922E+01 0.1404112602437623E+002
2 4 -0.29204177603800E+01 0.7328995342445310E+002
2 5 0.33364740729340E+01 0.1817640794169847E+003
3 3 -0.29205368674922E+01 0.1404112602437623E+002
3 4 -0.29204177603800E+01 0.7328995342445310E+002
3 5 0.33364740729340E+01 0.1817640794169847E+003
4 3 -0.29205368674922E+01 0.1404112602437623E+002
4 4 -0.29204177603800E+01 0.7328995342445310E+002
4 5 0.33364740729340E+01 0.1817640794169847E+003
5 3 -0.29205368674922E+01 0.1404112602437623E+002
5 4 -0.29204177603800E+01 0.7328995342445310E+002
5 5 0.33364740729340E+01 0.1817640794169847E+003
6 3 -0.29205368674922E+01 0.1404112602437623E+002
6 4 -0.29204177603800E+01 0.7328995342445310E+002
6 5 0.33364740729340E+01 0.1817640794169847E+003
7 3 -0.29205368674922E+01 0.1404112602437623E+002
7 4 -0.29204177603800E+01 0.7328995342445310E+002
7 5 0.33364740729340E+01 0.1817640794169847E+003
8 3 -0.29205368674922E+01 0.1404112602437623E+002
8 4 -0.29204177603800E+01 0.7328995342445310E+002
8 5 0.33364740729340E+01 0.1817640794169847E+003
9 3 -0.29205368674922E+01 0.1404112602437623E+002
9 4 -0.29204177603800E+01 0.7328995342445310E+002
9 5 0.33364740729340E+01 0.1817640794169847E+003
10 3 -0.29205368674922E+01 0.1404112602437623E+002
10 4 -0.29204177603800E+01 0.7328995342445310E+002
.
.
.
====================================================================

Dear highly esteemed scholars,

I have run projwfc.x and obtained obtained around six files for s, p, d orbitals. I am quite new to such calcuation and yet i am keenly interested to do it. How should i combine all these data and plot the graph for total DOS and PDOS?

I am working on Quantum Espresso installed on Ubuntu and using gnuplot for graph plotting.

Help me out, please.

In my calculation, the Fermi level is at 2.34 eV in the band structure. Now I want to shift the Fermi level to zero in GNUPLOT. please tell me about this problem or write command to bring F.L to zero in gnuplot.

I like to plot the partial density of states of Ta3N5. Contribution of different orbitals like s, p and d in band structure. Can anybody explain it to me.

I plotted the graphene structure with ChemDraw Professional 15.1, and show with the Chem 3D Hotlink, and found that the 3D image was always not in one plane. Do some colleagues know the trick to deal with the problem?

With best regards

I wanted to get a scatter plot but the constraint is to plot these points over an image with same dimension as the range of points. Is is possible? If yes which library is good to start with? I tried using gnuplot but it is causing problems. For now I have a code which was stated here but didn't work. I tried using a bitmap image with the points to be plotted in data1.dat file and used the gnuplot script which is stated in the link

set terminal pngcairo transparent

set output 'Figure1.bmp'

plot "Co_ordinates0.dat"

set output

I want to make a curve spline with points like excel but gnuplot 5.2 doesn't have the option "smooth path". I can see that the version 5.4 or 5.5 have the option "smooth path" but I could not install that versions. Someone to help me?

I have x and y coordinate values and the nitrate concentration values that I need to categorise as "very low" "low" "moderate" "high" "very high" and generate a numerical zvalues. Please I will also appreciate a step by step guide on how to proceed from my raw nitrate values.

Hello everybody,

I want to plot numerical results with the analytical solution for an arbitrary solver. I think the software Gnuplot can be used with a script whose name is

**plot.sh**.What is the structure of this script and how can I write it for the OpenFOAM results?

Hi, please anyone knows a method to plot the density of states (PDOS) vs E-Ef (Ef= E Fermi) using GNUPLOT, as it looks like with gnuplot I only get PDOS vs E?

Dear All,

I calculate band structure and hopping matrix of monolayer Graphene by using wannier90-2.0.1. There are two atoms in one unit cell, the following is input information :

INCAR :

IBRION = -1

ECUT = 500

EDIFF = 1e-5

IALGO = 38

PREC = Accurate

ISMEAR = -5

SIGMA = 0.05

LREAL = F

#LWAVE = T

NBANDS = 16

##

ALGO = None

NELM = 0

LCHARG = F

LWAVE = F

LWANNIER90=.TRUE.

num_wann=8

num_bands=16

# for GW uncomment

#exclude_bands 16-64

Begin Projections

C:s,px,py,pz

End Projections

# parameters for disentanglement

dis_froz_max=5

dis_froz_min=-5

dis_num_iter=1500

dis_conv_tol = 1.0d-10

dis_conv_window = 20

# parameters for wannierisation

num_iter = 2000

conv_tol = 1.0d-10

conv_window = 20

guiding_centres=true

# output hamiltonian matrix

#write_hr = true

hr_plot = true

# Bandstructure plot

#restart = plot

bands_plot = true

begin kpoint_path

G 0.0000000 0.0000000 0.0000000 K 0.3333333 0.6666667 0.0000000

K 0.3333333 0.6666667 0.0000000 M 0.5000000 0.5000000 0.5000000

M 0.5000000 0.5000000 0.5000000 G 0.0000000 0.0000000 0.0000000

end kpoint_path

bands_num_points 40

bands_plot_format gnuplot xmgrace

begin unit_cell_cart

2.4667090 0.0000000 0.0000000

1.2333545 2.1362327 0.0000000

0.0000000 0.0000000 15.1023000

end unit_cell_cart

begin atoms_cart

C 0.6166773 0.3560388 0.0000000

C 3.0833862 1.7801939 0.0000000

end atoms_cart

mp_grid = 6 6 1

begin kpoints

0.000000000000 0.000000000000 0.000000000000

0.166666666667 0.000000000000 0.000000000000

0.333333333333 0.000000000000 0.000000000000

0.500000000000 0.000000000000 0.000000000000

0.333333333333 0.166666666667 0.000000000000

0.500000000000 0.166666666667 0.000000000000

-0.333333333333 0.333333333333 0.000000000000

-0.166666666667 -0.000000000000 0.000000000000

-0.000000000000 -0.166666666667 0.000000000000

0.000000000000 0.166666666667 0.000000000000

-0.166666666667 -0.166666666667 0.000000000000

0.166666666667 0.166666666667 0.000000000000

-0.333333333333 0.000000000000 0.000000000000

0.000000000000 -0.333333333333 0.000000000000

0.000000000000 0.333333333333 0.000000000000

-0.333333333333 -0.333333333333 0.000000000000

0.333333333333 0.333333333333 0.000000000000

-0.000000000000 -0.500000000000 0.000000000000

-0.500000000000 -0.500000000000 0.000000000000

-0.333333333333 -0.166666666667 0.000000000000

-0.166666666667 -0.333333333333 0.000000000000

0.166666666667 0.333333333333 0.000000000000

0.166666666667 -0.166666666667 0.000000000000

-0.166666666667 0.166666666667 0.000000000000

-0.500000000000 -0.166666666667 0.000000000000

-0.166666666667 -0.500000000000 0.000000000000

0.166666666667 0.500000000000 0.000000000000

0.166666666667 -0.333333333333 0.000000000000

-0.166666666667 0.333333333333 0.000000000000

-0.333333333333 -0.500000000000 0.000000000000

0.333333333333 0.500000000000 0.000000000000

0.333333333333 -0.166666666667 0.000000000000

-0.333333333333 0.166666666667 0.000000000000

0.500000000000 0.333333333333 0.000000000000

-0.500000000000 -0.333333333333 0.000000000000

0.333333333333 -0.333333333333 0.000000000000

end kpoints

part of output wannier_hr.dat :

0 0 0 1 1 #5.975871 -0.000000

0 0 0 2 1 -1.089392 0.557442

0 0 0 3 1 -0.139528 -0.085332

0 0 0 4 1 0.155557 -0.074815

0 0 0 5 1 0.048334 0.012936

0 0 0 6 1 -0.040701 0.012192

0 0 0 7 1 -0.000254 -0.005978

0 0 0 8 1 0.140810 -0.003572

0 0 0 1 2 -1.089392 -0.557442

0 0 0 2 2 #-3.873225 -0.000000

0 0 0 3 2 3.091729 1.850427

0 0 0 4 2 2.671730 0.889670

0 0 0 5 2 -0.057204 -0.033336

0 0 0 6 2 0.183550 -0.012852

0 0 0 7 2 0.063698 -0.025852

0 0 0 8 2 0.199665 0.137492

0 0 0 1 3 -0.139528 0.085332

0 0 0 2 3 3.091729 -1.850427

0 0 0 3 3 # -9.031542 0.000000

0 0 0 4 3 -2.032979 0.353178

0 0 0 5 3 -0.003251 0.006119

0 0 0 6 3 0.238048 -0.035893

0 0 0 7 3 -0.085293 0.054229

0 0 0 8 3 0.377565 0.008021

0 0 0 1 4 0.155557 0.074815

0 0 0 2 4 2.671730 -0.889670

0 0 0 3 4 -2.032979 -0.353178

0 0 0 4 4 #-10.109918 -0.000000

0 0 0 5 4 -0.036041 0.016305

0 0 0 6 4 -0.777184 0.094481

0 0 0 7 4 0.054059 -0.024728

0 0 0 8 4 -1.182728 -0.226013

0 0 0 1 5 0.048334 -0.012936

0 0 0 2 5 -0.057204 0.033336

0 0 0 3 5 -0.003251 -0.006119

0 0 0 4 5 -0.036041 -0.016305

0 0 0 5 5 #5.601534 -0.000000

0 0 0 6 5 0.229079 -0.103372

0 0 0 7 5 -0.141783 0.103966

0 0 0 8 5 0.697744 -0.056069

0 0 0 1 6 -0.040701 -0.012192

0 0 0 2 6 0.183550 0.012852

0 0 0 3 6 0.238048 0.035893

0 0 0 4 6 -0.777184 -0.094481

0 0 0 5 6 0.229079 0.103372

0 0 0 6 6 -#0.667422 -0.000000

0 0 0 7 6 -0.247113 0.097277

0 0 0 8 6 3.423367 1.060382

0 0 0 1 7 -0.000254 0.005978

0 0 0 2 7 0.063698 0.025852

0 0 0 3 7 -0.085293 -0.054229

0 0 0 4 7 0.054059 0.024728

0 0 0 5 7 -0.141783 -0.103966

0 0 0 6 7 -0.247113 -0.097277

0 0 0 7 7 #-0.698032 -0.000000

0 0 0 8 7 0.083201 0.011267

0 0 0 1 8 0.140810 0.003572

0 0 0 2 8 0.199665 -0.137492

0 0 0 3 8 0.377565 -0.008021

0 0 0 4 8 -1.182728 0.226013

0 0 0 5 8 0.697744 0.056069

0 0 0 6 8 3.423367 -1.060382

0 0 0 7 8 0.083201 -0.011267

0 0 0 8 8 #-9.878974 0.000000

Some numbers should be equal : h11=h55, h22=h66, h33=h77, h44=h88, but why my results not show? any wrong input parameters? (Mark # in the *_hr.dat)

How does plot good looking publishable bandstructure from VASP calculation.

I have tried p4vasp but we can not modify graph in p4vasp. Any other suitable method for plotting bandstructure from VASP calculation.

I am using SIMPSON to simulate DQ signals generated by the pulse sequence SPC5. The input file of my simulation is modified from the input file of Post-C7, which is written in the original SIMPSON paper (Bak, M.; Rasmussen, J. T.; Nielsen, N. C.

*Journal of Magnetic Resonance***2011**,*213*(2), 366–400.) My input file is as followed:*#Cb, Ca, C' in order*

*#parameters from Journal of Magnetic Resonance 164 (2003) 270–285 (for alanine)*

*spinsys {*

*channels 13C*

*nuclei 13C 13C 13C*

*dipole 1 2 -2147 0 69 111*

*dipole 2 3 -2117 0 0 0*

*dipole 1 3 -475 0 34 111*

*}*

*par {*

*spin_rate 25000*

*sw spin_rate/2.0*

*np 64*

*crystal_file rep100*

*gamma_angles 40*

*start_operator Inz*

*detect_operator -Inz*

*verbose 1101*

*}*

*proc pulseq {} {*

*global par*

*maxdt 1*

*#matrix set detect totalcoherence {2}*

*set rf [expr 5.0*$par(spin_rate)]*

*set t90 [expr 0.25e6/$rf]*

*set t270 [expr 0.75e6/$rf]*

*set t360 [expr 1e6/$rf]*

*reset*

*for {set i 0} {$i < 5} {incr i} {*

*set ph [expr $i*360.0/5.0]*

*pulse $t90 $rf $ph*

*pulse $t360 $rf [expr $ph+180]*

*pulse $t270 $rf $ph*

*}*

*store 1*

*acq $par(np) 1*

*}*

*proc main {} {*

*global par*

*fsave [fsimpson] $par(name).fid*

*}*

I used "

*-Inz"*first for*detect_operator*as in the original paper and got a build-up curve with intensity ~0.75 (as attached). But I want to obtain DQ signals so I change the*detect_operator*to be "*–(I1p*I2p+I1m*I2m)"*, which stands for DQx. However I got a build-up curve with intensity ~0.0007, too low for the DQ conversion efficiency (as attached). I also tried "*matrix set detect totalcoherence {2}"*in the*proc pulseq*part to obtain DQ signals but had the intensity with similar intensity.Does anyone know what’s wrong with my coding? Thanks in advance.

I have run boltztrap calculations. And i have case.trace file with 10 columns in total. Now I need to plot electrical, thermal conductivities Vs Temprature.

I use to plot with Gnuplot, but when i use :

-> plot 'case.trace' u 2:8 w l

i got a lot of curves in the figure...

here attached my case.trace file.

Could you please tell me the procedure of plotting them with gnuplot?

I am going to start using GNUPlot for my future papers, because it is perfectly integrated with LaTeX and Tcl. Recently I used Matplotlib (Python), R, Plotchart (Tcl), and D3 (JS). I don't like to proceed with them because PDF, SVG, or PS are required as intermediate files and it's not good for the version control. I'd like to ask people with GNUPlot/LaTeX hands-on experience what are the disadvantages/bottle-necks of GNUPlot??? Please share your thoughts on it

I am trying to plot T against S from the attached file (BoltzTraP_Tutorial.tace) obtained using the BoltzTraP code but the graph i get looks funny. I used the code :

plot 'BoltzTraP_Tutorial.trace' using 2:5 with linespoints

Good day everyone,

I need to plot few graphs using gnuplot. So while installing gnuplot for windows, I am encountering error 267. This error means the file is not in directory. Is there anyone experienced installing gnuplot in windows without any error? Can you guide me? I'm looking forward for a advice from you all. Thank you so much in advance.

I want to smooth my Density of state curve and for that I want to implement method of running average of 2 or 3 points using gnuplot. I tried with all smoothing operations (smooth unique, csplines etc.) but the curve doesn't look good or if it is smooth it loses it's property.

can anyone please provide a script? suppose I want to use this command plot 'TDOS.dat' u 1:avg3($2) w l ...... the second column should follow the running average technique.Please help me.

I have four columns data for a single two dimensional (2D) contour plot.

I produce data in Linux and use Grace in order to visualize data. However, Grace just works in 2D. Now, I have problems with Grace. I am looking for better tool.

I heard Gnuplot is a perfect tool in Linux but I have problem in its running.

can anyone please tell me how to draw contour plot of potential energy surface of nuclei using beta and gamma using gnuplot.

The vasp output, DOSCAR file contains information about dos and there are three columns for total energy, density of state and Integrated density of state respectively.This DOSCAR file with LORBIT= 0.Actually I want to know the whole process step by step how the average TDOS plot can be found by using GNUPLOT software ? Thank you for your co-operations.

Hi,

I have a big dataset with mat format (used for Matlab). It is a giant matrix. Its size is about 280 MB. I am trying to input it into R using the function 'readMat' in package 'R.matlab'. However, it took soooo long time (about 20 minutes) and then it threw out an error 'cannot allocate vector of size 10.7Gb'. Though it can be easily inputed in Matlab (about 1 minute).

Does anyone know how to input a large mat dataset into R quickly? And why the memory stuff is OK in Matlab but not in R?

Thanks,

Lei

Hello everyone,

I have a sequence of files which named like plot_1.txt, plot_2.txt… plot_i.txt… plot_40.txt. The first column of these files is the time. The second column is the value of my interest. All these files have the same first column but different second column. The contents of these file is like:

Time Numbers

1 33

2 127

3 227

4 283

...

Now I want to use Gnuplot to get a graph of Time (first column) vs. mean value of Numbers (second column) and with errorbars on the graph.

Do I have to process these files manually to get the average value together with the Second Deviation of the second column, and then use Gnuplot to plot the file?

If Gnuplot cannot give the mean value of the second column and second deviation directly, and I need to obtain these two values myself. Because there are too many files for manually calculation, could you please give me some advice on how to do this fast and accurate?

Any help would be much appreciated!

The ONE is a simulator designed for the DTN routing protocols. I have experience in NS2.

Now want to understand how ONE works?

For example for NS2 simulation, first of all one has to write a TCL script which is run via terminal. Output of TCL is a trace file which is further processed through AWK script to get the network performance i.e PDR, delay etc. Output of AWK can be plotted using GNUPLOT.

If I replace NS2 to ONE simulator then how to get the network performance?

Hi everyone,

I have used QUANTUM ESPRESSO and wannier90 to calculate the electronic band structure and density of states for a system of 5 carbon atoms that is published in this paper:

However, the band structure that I get is just flat. Can anyone help me with it? What can be reasons to cause the electronic bands to be flat? I am assuming that there might be something wrong with the parameters, but I am not sure. Below are my scf and win files in case you need to look at them. BTW, 5cc.win includes the relaxed positions and cell parameters. Any feedback and suggestions are greatly appreciated. Thanks in advance

Zeina

5cc.scf

&CONTROL

calculation = 'scf',

restart_mode= 'from_scratch',

verbosity = 'high'

pseudo_dir = '/share/apps/espresso/espresso-5.1/wannier90-1.2/pseudo',

outdir = './',

prefix = '5cc',

tstress = .f.,

tprnfor = .t.,

/

&SYSTEM

ibrav = 0,

cosbc = 0.,

cosac = 0.,

cosab = 0.,

nat = 5,

ntyp = 1,

ecutwfc = 30.,

ecutrho = 240.,

occupations = 'smearing',

smearing = 'cold',

degauss = 0.03,

nspin = 1,

/

&ELECTRONS

mixing_beta = 0.4

electron_maxstep = 1000,

conv_thr = 1.D-10,

/

CELL_PARAMETERS {angstrom}

6.520 0.00 0.00

0.00 1.304 0.00

0.00 0.00 1.304

ATOMIC_SPECIES

C 12.0107 C.pz-vbc.UPF

ATOMIC_POSITIONS {angstrom}

C -14.700 2.190 0.000

C -13.380 2.190 0.000

C -11.946 2.190 0.000

C -10.626 2.190 0.000

C -9.1920 2.190 0.000

K_POINTS {automatic}

10 1 1 0 0 0

5cc.win file:

num_bands = 14

num_wann = 10

num_iter = 100

dis_num_iter = 100

dis_win_max = 10.0

dis_froz_max = 7.5

dis_froz_min = -12.84750

guiding_centres = .true.

mp_grid = 10 1 1

iprint = 2

num_dump_cycles = 100

num_print_cycles = 10

transport = true

transport_mode = bulk

one_dim_axis = x

dist_cutoff = 5.5

tran_win_min = -6.5

tran_win_max = 6.5

tran_energy_step = 0.01

fermi_energy = -2.5400

dist_cutoff_mode = one_dim

translation_centre_frac = 0.0 0.0 0.0

bands_plot = true

bands_plot_format = gnuplot

begin kpoint_path

G 0.00000 0.00000 0.00000 F 0.00000 0.50000 0.00000

F 0.00000 0.50000 0.00000 Q 0.00000 0.50000 0.50000

Q 0.00000 0.50000 0.50000 Z 0.00000 0.00000 0.50000

Z 0.00000 0.00000 0.50000 G 0.00000 0.00000 0.00000

end kpoint_path

begin projections

C:sp

end projections

begin unit_cell_cart

Ang

6.291718261 0.000000000 0.000000000

0.000000000 5.499193194 0.000000000

0.000000000 0.000000000 5.499193889

end unit_cell_cart

begin atoms_cart

Ang

C -14.066411956 1.204322080 0.000000000

C -12.808128586 1.204324092 0.000000000

C -11.549743017 1.204325966 0.000000000

C -10.291392209 1.204322962 0.000000000

C -9.033033986 1.204321448 0.000000000

end atoms_cart

Begin KPoints

0.00000000 0.00000000 0.00000000

0.10000000 0.00000000 0.00000000

0.20000000 0.00000000 0.00000000

0.30000000 0.00000000 0.00000000

0.40000000 0.00000000 0.00000000

0.50000000 0.00000000 0.00000000

0.60000000 0.00000000 0.00000000

0.70000000 0.00000000 0.00000000

0.80000000 0.00000000 0.00000000

0.90000000 0.00000000 0.00000000

End KPoints

I want to know the exact command in gnuplot for plotting average curve of my graphs same as what I have seen in "lysozyme in water" , Justin tutorial graphs

Dear everyone,

I have tried to plot the picture like the first attachment using a text file. The structure of the file is like:

#Time Energy Nd

1 0.1 2

2 0.1 4

3 0.1 5

1 0.2 9

2 0.2 10

3 0.2 15

……

And so on.

And then I use

**to plot the figure. However, there are lines between data of x axis and data of y axis. It is still different with the picture as it in the first attachment.***splot “datafile” u 1:2:3 with lines*And I also want to plot a picture the same as the second attachment.

Could anybody give me some instructions on how to plot pictures like the following two in Gnuplot?

Thanks very much in advance!

With My Best Regards

Liu

I calculate DOS from VASP code with default NEDOS as well as increasing NEDOS with 3000. When I plot DOS from DOSCAR file it does not look good as we see in literature. Sometime one peak dos very large compared to other sometime all DOS peaks look zigzag.

I plot DOS in origin software. Sometime I use GNUPLOT also. How can I improve plot quality ?

1: By any input parameter in VASP

2: By plotting software

3: Any other

I have attached here my simulation output files files as well as DOS plot and origin file.

Hi all,

I did a simple script for calculation of winding distribution in 3D. I would like to have an output picture with coils colored according to their phases, but I am not able to set the right color for gnuplot output. In fltk the colors are okay, but the remaining part of the main software utilizes gnuplot as output program, so I cannot switch to fltk.

Is there any possibility to have this working? The output is made using this part of the code:

figure(1)

for pom = 1:C

% transformation from cylindrical coordinate system to cartesian

x = R.*cos(fi);

y = R.*sin(fi);

% drawing

if schema(pom) == 'U'

plot3(x, y, z, 'r-', 'linewidth', 1);

end

if schema(pom) == 'V'

plot3(x, y, z, 'b-', 'linewidth', 1);

end

if schema(pom) == 'W'

plot3(x, y, z, 'g-', 'linewidth', 1);

end

hold on

fi = fi + fi_c;

end

hold off

grid on

set(gca,'FontSize',10)

title('Vizualizace vinuti navrhovaneho stroje')

xlabel('r [m]', 'FontSize', 12)

ylabel('r [m]', 'FontSize', 12)

zlabel('z [m]', 'FontSize', 12)

xlim([-1.2*R_max 1.2*R_max])

ylim([-1.2*R_max 1.2*R_max])

zlim([-l_Fe-1.2*R_max 1.2*R_max])

saveas(1, 'cela.emf')

In the code R, fi, and z describe the coil, fi_c is the angular distance between coils, C is the amount of coils and schema is a vector of characters including the arrangemet of the winding. Outputs in from fltk and gnuplot are attached.

Thank you for your help,

Karel

Does anyone Know how to increase the width of the contour lines in gnuplot? I have used the following commands to obtain the contour lines:

gnuplot> splot 'data.txt' using 1:2:3 with lines

gnuplot> set contour base

gnuplot> unset surface

gnuplot> set view map

gnuplot> replot

gnuplot>.......................

I have installed cygwin in windows 7 and created a linux environment but when I plot even a simple function like sin(x), it gives an error like:

G N U P L O T

Version 4.2 patchlevel 6

last modified Sep 2009

System: Linux 2.6.32-358.23.2.el6.x86_64

Copyright (C) 1986 - 1993, 1998, 2004, 2007 - 2009

Thomas Williams, Colin Kelley and many others

Type `help` to access the on-line reference manual.

The gnuplot FAQ is available from http://www.gnuplot.info/faq/

Send bug reports and suggestions to <http://sourceforge.net/projects/gnuplot>

Terminal type set to 'x11'

gnuplot> plot sin(x)

gnuplot: unable to open display ''

gnuplot: X11 aborted.

How do i solve out this problem?

Hi all,

I have 3D data which I am trying to splot in GNUPLOT. The z-range of values is negative, going from 0 to -300. For some reason in both my X11 and postscript terminals the plane has been painted completely yellow which is 0 on the colour range, even though it drops down to -300 which is dark purple/black on the colorbox.

Apologies for the simplistic nature of this post. I was loath to ask here at all but I'm running out of steam. Many thanks

Anthony

The code I am using:

set pm3d

set xlabel "ASN - HIS (nm)"

set ylabel "ASN - PRO (nm)"

set zlabel "FES (kJ/mol)"

#set cbrange [-300:0] <-- same as default

#set zrange [-300:0] <-- same as default

set ticslevel 0.2

#unset colorbox

unset key

set contour base

set pm3d at bs

splot 'FES_mouth.dat' with pm3d

Gnuplot does it but nos as well as I wish.

It would be helpful if the explanations are given for 3 categories:

1. Beginners using GUI

2. Wannabes using both GUI and TUI

3. Experts using TUI

I am wondering how to make the best combination using latex and gnuplot. I am currently using the epslatex terminal in gnuplot and the link input to latex. Is there another more efficient way?

I have a large 3D data set (~100 MBs in size) and good old Gnuplot does not only take too long to produce a plot, but I noticed that it produces inconsistent plots when the display grid is changed. I tried Mathematica and to my disappointment it didn't even produce the figure. Then I tried R, which seems much faster than Gnuplot, but I couldn't find a good reference on how to set the 3D plot parameters. Any helpful suggestions?

I don't want to solve it as z = z(x,y). In fact it would be helpfull if I can plot inequalities like f(x,y,z) < 0 and project the allowed region on the x-y plane .