Erste Gnuplot
This commit is contained in:
216
gnuplot/surjektiv001.gp
Normal file
216
gnuplot/surjektiv001.gp
Normal file
@@ -0,0 +1,216 @@
|
||||
set terminal svg dynamic
|
||||
set xrange [-1.95:1.95]
|
||||
set yrange [-1:3.95]
|
||||
unset border
|
||||
unset tics
|
||||
unset key
|
||||
set origin 0,0
|
||||
set grid
|
||||
set xtics add ("" 0)
|
||||
set ytics add ("" 0)
|
||||
set size ratio 1 # quadratisches Koordinatensystem
|
||||
set arrow from -2.5,0 to 2.5,0 filled back lw 1
|
||||
set arrow from 0,-1 to 0,4 filled back lw 1
|
||||
f(x)= x**2
|
||||
plot x >=-1.85 && x <=1.85 ? f(x) : 1/0
|
||||
set output "surjektiv001.svg"
|
||||
replot
|
||||
|
||||
# history
|
||||
# unset autoscale x
|
||||
#
|
||||
# set autoscale y
|
||||
#
|
||||
# show grid
|
||||
#
|
||||
# sqrt(x^5)
|
||||
#
|
||||
# set xtics add ("" 0)
|
||||
#
|
||||
# set ytics add ("" 0)
|
||||
#
|
||||
# show border
|
||||
#
|
||||
# unset border
|
||||
#
|
||||
# load 'lineareAbhaengigkeit01.gp'
|
||||
#
|
||||
# #set terminal pdf
|
||||
#
|
||||
# #set output "lineareAbhaengigkeit01.pdf"
|
||||
#
|
||||
# set output "lineareAbhaengigkeit01.svg"
|
||||
#
|
||||
# #https://latex.tugraz.at/spezial/gnuplot
|
||||
#
|
||||
# unset autoscale
|
||||
#
|
||||
# set origin 0,0
|
||||
#
|
||||
# set grid
|
||||
#
|
||||
# set border 0
|
||||
#
|
||||
# set size ratio 1 # quadratisches Koordinatensystem
|
||||
#
|
||||
# #set xzeroaxis
|
||||
#
|
||||
# #set yzeroaxis
|
||||
#
|
||||
# # if arrows in both directions from the origin are wanted
|
||||
#
|
||||
# set xrange[-3.3:3.3]
|
||||
#
|
||||
# set yrange[-3.3:3.3]
|
||||
#
|
||||
#set arrow from 0,0 to 1,2 filled back lw 3 lc rgb "blue"
|
||||
#
|
||||
# set arrow from 0,0 to -2,2 filled back lw 3 lc rgb "red"
|
||||
#
|
||||
# show output
|
||||
#
|
||||
# type set to 'wxt'
|
||||
#
|
||||
# Termianl type set to 'wxt'
|
||||
#
|
||||
# Terminal type set to 'wxt'
|
||||
#
|
||||
# set terminal wxt
|
||||
#
|
||||
# plot sin(x);
|
||||
#
|
||||
# set xtics -2,2
|
||||
#
|
||||
# set xtics --4,4
|
||||
#
|
||||
# polot (x**2)
|
||||
#
|
||||
# no border
|
||||
#
|
||||
# noborder
|
||||
#
|
||||
# set noborder;
|
||||
#
|
||||
# unset border;
|
||||
#
|
||||
# unset key
|
||||
#
|
||||
# unset tics
|
||||
#
|
||||
# set ylabel 'y'
|
||||
#
|
||||
# set xlbael 'x'
|
||||
#
|
||||
# set xlabel 'x'
|
||||
#
|
||||
# set ytics -2,8
|
||||
#
|
||||
# set noborder
|
||||
#
|
||||
# set nogrid
|
||||
#
|
||||
# set xtics axis
|
||||
#
|
||||
# set yrange[-2:5]
|
||||
#
|
||||
# set xrange[-3:3]
|
||||
#
|
||||
# set size 0.6, 0.6
|
||||
#
|
||||
# set ytics (-2,8)
|
||||
#
|
||||
# set size 4, 6
|
||||
#
|
||||
# set size 1, 1
|
||||
#
|
||||
# plot (x**2)
|
||||
#
|
||||
# show xlabel
|
||||
#
|
||||
# show ylabel
|
||||
#
|
||||
# show zlabel
|
||||
#
|
||||
# set zeroaxis
|
||||
#
|
||||
# show zeroaxis
|
||||
#
|
||||
# test
|
||||
#
|
||||
# set xzeroaxis
|
||||
#
|
||||
# set yzeroaxis
|
||||
#
|
||||
# set border 0 # remove frame
|
||||
#
|
||||
# set xtics axis # place tics on axis rather than on border
|
||||
#
|
||||
# set ytics axis
|
||||
#
|
||||
set ticscale 0 # [optional] labels only, no tics
|
||||
#
|
||||
# set xtics add ("" 0) # suppress origin label that lies on top of axis
|
||||
#
|
||||
# set ytics add ("" 0) # suppress origin label that lies on top of axis
|
||||
#
|
||||
# #
|
||||
#
|
||||
# # if arrows are wanted only in the positive direction
|
||||
#
|
||||
# set arrow 2 from 0,0 to first 0, graph 1 filled head
|
||||
#
|
||||
# set arrow 3 from 0,0 to graph 0, first 0 filled head
|
||||
#
|
||||
# set arrow 4 from 0,0 to first 0, graph 0 filled head
|
||||
#
|
||||
# set arrow 1 from 0,0 to graph 1, first 0 filled head
|
||||
#
|
||||
# set arrow 3 from graph 0,0 to -5,5,3
|
||||
#
|
||||
# unset arrows
|
||||
#
|
||||
# unset arrow
|
||||
#
|
||||
# set arrow 1 from -4,0 to 4,0 filled head
|
||||
#
|
||||
# set arrow 1 from -3,0 to 3,0 filled head
|
||||
#
|
||||
# set arrow 2 from 0,-2.5 to 0,8 filled head
|
||||
#
|
||||
# set arrow 2 from 0,-2.5 to 0,7 filled head
|
||||
#
|
||||
# set arrow 2 from 0,-2.5 to 0,6 filled head
|
||||
#
|
||||
# set ytics (-2,5)
|
||||
#
|
||||
# set ytics (-2...5)
|
||||
#
|
||||
# set ytics (-2,...,5)
|
||||
#
|
||||
# set ytics (-2:5)
|
||||
#
|
||||
# set ytics (-2:4)
|
||||
#
|
||||
# set ytics [-2:4]
|
||||
#
|
||||
# set y2range [-2:4]
|
||||
#
|
||||
# pwd
|
||||
#
|
||||
# set terminal png size 400,300
|
||||
#
|
||||
# set output "surjektiv001.png"
|
||||
#
|
||||
# set terminal svg
|
||||
#
|
||||
# plot NaN t''
|
||||
#
|
||||
# set output "surjektiv001.svg"
|
||||
#
|
||||
# replot
|
||||
#
|
||||
# save '001'
|
||||
#
|
||||
# quit
|
||||
#
|
||||
#
|
||||
Reference in New Issue
Block a user