File:Envelope string art.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 600 × 480 pixels, file size: 88 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Envelope curve of the art strings
Date
Source Own work
Author IkamusumeFan
SVG development
InfoField
 
The SVG code is valid.
 
This chart was created with Gnuplot.
Source code
InfoField

Gnuplot code

#!/usr/bin/gnuplot
# Author: Ika
# Date: 12/02/2014

# last changes:
# 2018-01-28: (JoKalliauer) instead of 50 plots with one line one plot with 50 lines, and only the first has a key 

set term svg font 'Liberation Sans, 24'
set output 'envelope_string_art.svg'

# In this program, the envelope equation is x^2 - 2xy + y^2 -2kx - 2ky + k^2 = 0. 
# In other words, the family of the string lines is y = -(k-t)x/t + k-t. 
# Each line connects (0, k-t) and (t, 0).
# Here k takes value 1.
k = 1;
# n is the number of the trajectories
n = 51;

set multiplot
set samples 1000

set xrange [0:k]
set yrange [0:k]
set xtics 0.2
set ytics 0.2
set xzeroaxis lt -1 lc rgb "black" lw 1
set yzeroaxis lt -1 lc rgb "black" lw 1

unset label

set key on

#t = i*k*1.0/n;
# The following draws the lines iteratively.

plot -1*(k-(1*k*1.0/n))*x/(1*k*1.0/n) + k-(1*k*1.0/n) t "k = 1" lc rgb "red" lw 1, \
	for [i=2:n-1] -1*(k-(i*k*1.0/n))*x/(i*k*1.0/n) + k-(i*k*1.0/n) notitle lc rgb "red" lw 1;

unset multiplot

set term x11
set output

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
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 license, 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 license as the original.

File history

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

Date/TimeThumbnailDimensionsUserComment
current12:29, 28 January 2018Thumbnail for version as of 12:29, 28 January 2018600 × 480 (88 KB)JoKalliauer (talk | contribs)File:Commons:Graphics_village_pump
08:54, 28 January 2018Thumbnail for version as of 08:54, 28 January 2018600 × 480 (344 KB)JoKalliauer (talk | contribs)updated sourcecode, added DTD (without SVG optimisation)
09:11, 2 December 2014Thumbnail for version as of 09:11, 2 December 2014600 × 480 (507 KB)IkamusumeFan (talk | contribs)User created page with UploadWizard

The following 2 pages use this file:

File usage on other wikis

The following other wikis use this file:

Metadata