File:Polygon vertex labels.svg

From Department of Mathematics at UTSA
Jump to navigation Jump to search

Original file(SVG file, nominally 767 × 264 pixels, file size: 31 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 Illustration of labeling of vertices on a five sided polygon, including the convention that vertex zero is the same as the last vertex.
Date
Source Own work
Author Qef
Other versions LabeledPolygon.png
SVG development
InfoField
 
The SVG code is valid.
 
This vector image was created with MetaPost.
 
The file size of this SVG image may be irrationally large because its text has been converted to paths inhibiting translations.
Source code
InfoField

PostScript code

mpost fig.mp
ps2pdf -dEPSCrop fig.1 fig.pdf
pstoedit -page 1 -dt -xscale 2 -yscale 2 -f sk fig.pdf fig.sk
inkscape -z --vacuum-defs -f fig.sk -l fig.svg

Data

//where ''fig.mp'' is a file containing the following MetaPost program:
prologues := 3;
input boxes

beginfig(1);
pickup pencircle scaled 2pt;

numeric polyscale, textscale;
polyscale := .8;
textscale := 2;
dotlabeldiam := 6bp;    % dots twice normal size

% Vertices, based on the oritinal bitmap version.
z0 = polyscale*(280, 170);
z1 = polyscale*(58, 65);
z2 = polyscale*(398, 44);
z3 = polyscale*(387, 114);
z4 = polyscale*(350, 102);

% Position of label in middle.
z5 = polyscale*(240, 105);

path poly;
poly = z0--z1--z2--z3--z4--cycle;
fill poly withcolor 0.85white;
draw poly;

label(btex$ n = 5 $etex scaled textscale, z5);

dotlabel.top(btex$ x_0, y_0 = x_5, y_5 $etex scaled textscale, z0);
dotlabel.lft(btex$ x_1, y_1 $etex scaled textscale, z1);
dotlabel.rt (btex$ x_2, y_2 $etex scaled textscale, z2);
dotlabel.rt (btex$ x_3, y_3 $etex scaled textscale, z3);
dotlabel.bot(btex$ x_4, y_4 $etex scaled textscale, z4);

endfig;
end

Licensing

Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

13 July 2009

File history

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

Date/TimeThumbnailDimensionsUserComment
current05:21, 11 October 2016Thumbnail for version as of 05:21, 11 October 2016767 × 264 (31 KB)Svjonon-colliding text/borders

The following page uses this file:

Metadata