File:Klein bottle.svg

From Vigyanwiki

Original file(SVG file, nominally 250 × 480 pixels, file size: 404 KB)

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

Summary

Description
English: Klein bottle made with gnuplot 4.0.
Русский: Бутылка Клейна, сделанная в gnuplot 4.0.
Date
Source Own work
Author Tttrung
SVG genesis
InfoField
 
The source code of this SVG is invalid due to 3 errors.
 
This W3C-invalid plot was created with Gnuplot
Source code
InfoField

Gnuplot code

x(u,v)= v<pi ? (2.5-1.5*cos(v))*cos(u): \
        v<2*pi ? (2.5-1.5*cos(v))*cos(u):\
        v<3*pi ? -2+(2+cos(u))*cos(v): -2+2*cos(v)-cos(u)
y(u,v)= v<pi ? (2.5-1.5*cos(v))*sin(u): \
        v<2*pi ? (2.5-1.5*cos(v))*sin(u): \
        v<3*pi ? sin(u): sin(u)
z(u,v)= v<pi ? -2.5*sin(v): v < 2*pi ? 3*v-3*pi:\
        v<3*pi ? (2+cos(u))*sin(v)+3*pi: -3*v+12*pi
set parametric
set pm3d explicit
set pal rgb 9,9,3
unset colorbox
unset key
unset border
unset xtics
unset ytics
unset ztics
set hidden3d
set surface
set ticslevel 0
set size square
set view 60,210,1.5,1
set isosamples 18,48
set xrange[-8:10]
set yrange[-9:9]
set urange[0:2*pi]
set vrange[0:4*pi]
set term svg
set out "bottle.svg"
set multiplot
splot x(u,v),y(u,v),-z(u,v) w pm3d
splot x(u,v),y(u,v),-z(u,v) lt 4
unset multiplot

Gnuplot script

English: Save this script (slightly modified from [1] - see [2] for the page containing this model) to file "bottle" then run the command line "gnuplot bottle", you will get "bottle.svg", if you have well installed gnuplot 4.0 or later.
Русский: Сохраните сценарий (незначительно модифицированный из [3] - см. [4] для страницы, содержащей эту модель) в файл "bottle", запустите коммандную строку "gnuplot bottle" и получите файл "bottle.svg". Необходим gnuplot 4.0 или более поздняя версия.


Licensing

I, the copyright holder of this work, hereby publish it under the following licences:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation Licence, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the licence is included in the section entitled GNU Free Documentation Licence.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported licence.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the licence, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible licence as the original.
This licensing tag was added to this file as part of the GFDL licensing update.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic, 2.0 Generic and 1.0 Generic licence.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the licence, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible licence as the original.
You may select the licence of your choice.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

18 July 2006

image/svg+xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current10:56, 17 August 2007Thumbnail for version as of 10:56, 17 August 2007250 × 480 (404 KB)wikimediacommons>Oleg AlexandrovStrip the whitespace around the figure