mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
582d54d055
We now have a test harness for EPS files. Two variants were created one for the default scale=1 and one where scale=2. These two tests are run against two different EPS files, one with zero for the start of the bounding box and one where this is not the case. PNG test renders are used to make sure the output match what we expect. Lastly the sample EPS files were generated using the included create_eps.gnuplot file and the gnuplot program on a Mac.
31 lines
1.1 KiB
Gnuplot
31 lines
1.1 KiB
Gnuplot
#!/usr/bin/gnuplot
|
|
|
|
#This is the script that was used to create our sample EPS files
|
|
#We used the following version of the gnuplot program
|
|
#G N U P L O T
|
|
#Version 4.6 patchlevel 3 last modified 2013-04-12
|
|
#Build System: Darwin x86_64
|
|
|
|
#This file will generate the non_zero_bb.eps variant, in order to get the
|
|
#zero_bb.eps variant you will need to edit line6 in the result file to
|
|
#be "%%BoundingBox: 0 0 460 352" instead of "%%BoundingBox: 50 50 410 302"
|
|
|
|
set t postscript eps color
|
|
set o "sample.eps"
|
|
set dummy u,v
|
|
set key bmargin center horizontal Right noreverse enhanced autotitles nobox
|
|
set parametric
|
|
set view 50, 30, 1, 1
|
|
set isosamples 10, 10
|
|
set hidden3d back offset 1 trianglepattern 3 undefined 1 altdiagonal bentover
|
|
set ticslevel 0
|
|
set title "Interlocking Tori"
|
|
|
|
set style line 1 lt 1 lw 1 pt 3 lc rgb "red"
|
|
set style line 2 lt 1 lw 1 pt 3 lc rgb "blue"
|
|
|
|
set urange [ -3.14159 : 3.14159 ] noreverse nowriteback
|
|
set vrange [ -3.14159 : 3.14159 ] noreverse nowriteback
|
|
splot cos(u)+.5*cos(u)*cos(v),sin(u)+.5*sin(u)*cos(v),.5*sin(v) ls 1,\
|
|
1+cos(u)+.5*cos(u)*cos(v),.5*sin(v),sin(u)+.5*sin(u)*cos(v) ls 2
|