Created
April 7, 2023 14:19
-
-
Save Risto-Stevcev/e21ba108d99d5501721877b82b22b093 to your computer and use it in GitHub Desktop.
Gnu plot with Tcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package require Tk | |
eval [exec gnuplot << " | |
set term tk | |
set key fixed left top vertical Right noreverse enhanced autotitle box lt black linewidth 1.000 dashtype solid | |
set samples 50, 50 | |
set title \"Simple Plots\" | |
set title font \",14\" textcolor lt 1 norotate | |
set xrange \[ * : * \] noreverse writeback | |
set x2range \[ * : * \] noreverse writeback | |
set yrange \[ * : * \] noreverse writeback | |
set y2range \[ * : * \] noreverse writeback | |
set zrange \[ * : * \] noreverse writeback | |
set cbrange \[ * : * \] noreverse writeback | |
set rrange \[ * : * \] noreverse writeback | |
NO_ANIMATION = 1 | |
plot \[-10:10\] sin(x),atan(x),cos(atan(x)) | |
"] | |
pack [canvas .c] | |
gnuplot .c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment