File:Envelope string art.svg

From Vigyanwiki

Original file(SVG file, nominally 600 × 480 pixels, file size: 88 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: Envelope curve of the art strings
Date
Source Own work
Author IkamusumeFan
SVG genesis
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

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

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

2 December 2014

File history

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

Date/TimeThumbnailDimensionsUserComment
current17:59, 28 January 2018Thumbnail for version as of 17:59, 28 January 2018600 × 480 (88 KB)wikimediacommons>JoKalliauerFile:Commons:Graphics_village_pump

The following page uses this file:

Metadata