Final Draft (Hopefully)
This commit is contained in:
33
plot2/plot.R
Normal file
33
plot2/plot.R
Normal file
@@ -0,0 +1,33 @@
|
||||
library(ggplot2)
|
||||
library(readr)
|
||||
library(latex2exp)
|
||||
|
||||
dat <- read_csv("M,a
|
||||
0,0")
|
||||
|
||||
x_lab <- function() {
|
||||
TeX(r"($M$)")
|
||||
}
|
||||
|
||||
y_lab <- function() {
|
||||
TeX(r"($a \ \small{m \cdot s^{-2}}$)")
|
||||
}
|
||||
|
||||
plt <- ggplot(data = dat, aes(x = M, y = a)) +
|
||||
geom_segment(x = 0,
|
||||
y = 0,
|
||||
xend = 1,
|
||||
yend = 9.8,
|
||||
col = "#0072B2",
|
||||
size = 1) +
|
||||
labs(x = x_lab(),
|
||||
y = y_lab()) +
|
||||
expand_limits(y = c(0, 10), x = c(0, 1))
|
||||
|
||||
plt
|
||||
|
||||
ggsave("plot.svg",
|
||||
plot = plt,
|
||||
width = 5,
|
||||
height = 5,
|
||||
)
|
||||
BIN
plot2/plot.png
Normal file
BIN
plot2/plot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
84
plot2/plot.svg
Normal file
84
plot2/plot.svg
Normal file
@@ -0,0 +1,84 @@
|
||||
<?xml version='1.0' encoding='UTF-8' ?>
|
||||
<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' class='svglite' width='360.00pt' height='360.00pt' viewBox='0 0 360.00 360.00'>
|
||||
<defs>
|
||||
<style type='text/css'><![CDATA[
|
||||
.svglite line, .svglite polyline, .svglite polygon, .svglite path, .svglite rect, .svglite circle {
|
||||
fill: none;
|
||||
stroke: #000000;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
stroke-miterlimit: 10.00;
|
||||
}
|
||||
.svglite text {
|
||||
white-space: pre;
|
||||
}
|
||||
]]></style>
|
||||
</defs>
|
||||
<rect width='100%' height='100%' style='stroke: none; fill: #FFFFFF;'/>
|
||||
<defs>
|
||||
<clipPath id='cpMC4wMHwzNjAuMDB8MC4wMHwzNjAuMDA='>
|
||||
<rect x='0.00' y='0.00' width='360.00' height='360.00' />
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g clip-path='url(#cpMC4wMHwzNjAuMDB8MC4wMHwzNjAuMDA=)'>
|
||||
<rect x='0.00' y='0.00' width='360.00' height='360.00' style='stroke-width: 1.07; stroke: #FFFFFF; fill: #FFFFFF;' />
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id='cpNDAuNzV8MzU0LjUyfDUuNDh8MzI3Ljk1'>
|
||||
<rect x='40.75' y='5.48' width='313.77' height='322.47' />
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g clip-path='url(#cpNDAuNzV8MzU0LjUyfDUuNDh8MzI3Ljk1)'>
|
||||
<rect x='40.75' y='5.48' width='313.77' height='322.47' style='stroke-width: 1.07; stroke: none; fill: #EBEBEB;' />
|
||||
<polyline points='40.75,276.65 354.52,276.65 ' style='stroke-width: 0.53; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='40.75,203.36 354.52,203.36 ' style='stroke-width: 0.53; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='40.75,130.07 354.52,130.07 ' style='stroke-width: 0.53; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='40.75,56.78 354.52,56.78 ' style='stroke-width: 0.53; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='90.67,327.95 90.67,5.48 ' style='stroke-width: 0.53; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='161.98,327.95 161.98,5.48 ' style='stroke-width: 0.53; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='233.29,327.95 233.29,5.48 ' style='stroke-width: 0.53; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='304.60,327.95 304.60,5.48 ' style='stroke-width: 0.53; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='40.75,313.29 354.52,313.29 ' style='stroke-width: 1.07; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='40.75,240.00 354.52,240.00 ' style='stroke-width: 1.07; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='40.75,166.71 354.52,166.71 ' style='stroke-width: 1.07; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='40.75,93.43 354.52,93.43 ' style='stroke-width: 1.07; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='40.75,20.14 354.52,20.14 ' style='stroke-width: 1.07; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='55.02,327.95 55.02,5.48 ' style='stroke-width: 1.07; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='126.33,327.95 126.33,5.48 ' style='stroke-width: 1.07; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='197.64,327.95 197.64,5.48 ' style='stroke-width: 1.07; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='268.95,327.95 268.95,5.48 ' style='stroke-width: 1.07; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<polyline points='340.26,327.95 340.26,5.48 ' style='stroke-width: 1.07; stroke: #FFFFFF; stroke-linecap: butt;' />
|
||||
<line x1='55.02' y1='313.29' x2='340.26' y2='26.00' style='stroke-width: 2.13; stroke: #0072B2; stroke-linecap: butt;' />
|
||||
</g>
|
||||
<g clip-path='url(#cpMC4wMHwzNjAuMDB8MC4wMHwzNjAuMDA=)'>
|
||||
<text x='35.82' y='316.43' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Arial";' textLength='12.42px' lengthAdjust='spacingAndGlyphs'>0.0</text>
|
||||
<text x='35.82' y='243.15' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Arial";' textLength='12.42px' lengthAdjust='spacingAndGlyphs'>2.5</text>
|
||||
<text x='35.82' y='169.86' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Arial";' textLength='12.42px' lengthAdjust='spacingAndGlyphs'>5.0</text>
|
||||
<text x='35.82' y='96.57' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Arial";' textLength='12.42px' lengthAdjust='spacingAndGlyphs'>7.5</text>
|
||||
<text x='35.82' y='23.28' text-anchor='end' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Arial";' textLength='17.45px' lengthAdjust='spacingAndGlyphs'>10.0</text>
|
||||
<polyline points='38.01,313.29 40.75,313.29 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
|
||||
<polyline points='38.01,240.00 40.75,240.00 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
|
||||
<polyline points='38.01,166.71 40.75,166.71 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
|
||||
<polyline points='38.01,93.43 40.75,93.43 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
|
||||
<polyline points='38.01,20.14 40.75,20.14 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
|
||||
<polyline points='55.02,330.69 55.02,327.95 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
|
||||
<polyline points='126.33,330.69 126.33,327.95 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
|
||||
<polyline points='197.64,330.69 197.64,327.95 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
|
||||
<polyline points='268.95,330.69 268.95,327.95 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
|
||||
<polyline points='340.26,330.69 340.26,327.95 ' style='stroke-width: 1.07; stroke: #333333; stroke-linecap: butt;' />
|
||||
<text x='55.02' y='339.17' text-anchor='middle' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Arial";' textLength='17.45px' lengthAdjust='spacingAndGlyphs'>0.00</text>
|
||||
<text x='126.33' y='339.17' text-anchor='middle' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Arial";' textLength='17.45px' lengthAdjust='spacingAndGlyphs'>0.25</text>
|
||||
<text x='197.64' y='339.17' text-anchor='middle' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Arial";' textLength='17.45px' lengthAdjust='spacingAndGlyphs'>0.50</text>
|
||||
<text x='268.95' y='339.17' text-anchor='middle' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Arial";' textLength='17.45px' lengthAdjust='spacingAndGlyphs'>0.75</text>
|
||||
<text x='340.26' y='339.17' text-anchor='middle' style='font-size: 8.80px;fill: #4D4D4D; font-family: "Arial";' textLength='17.45px' lengthAdjust='spacingAndGlyphs'>1.00</text>
|
||||
<text x='192.65' y='351.88' style='font-size: 11.00px; font-family: "Arial";' textLength='9.98px' lengthAdjust='spacingAndGlyphs'>M</text>
|
||||
<text transform='translate(12.87,187.36) rotate(-90)' style='font-size: 11.00px; font-family: "Arial";' textLength='6.17px' lengthAdjust='spacingAndGlyphs'>a</text>
|
||||
<text transform='translate(12.87,181.19) rotate(-90)' style='font-size: 11.00px; font-family: "Symbol";' textLength='6.60px' lengthAdjust='spacingAndGlyphs'> </text>
|
||||
<text transform='translate(12.87,174.59) rotate(-90)' style='font-size: 11.00px; font-family: "Symbol";' textLength='6.60px' lengthAdjust='spacingAndGlyphs'> </text>
|
||||
<text transform='translate(12.87,167.99) rotate(-90)' style='font-size: 7.70px; font-family: "Arial";' textLength='7.19px' lengthAdjust='spacingAndGlyphs'>m</text>
|
||||
<text transform='translate(12.87,160.80) rotate(-90)' style='font-size: 7.70px; font-family: "Symbol";' textLength='4.62px' lengthAdjust='spacingAndGlyphs'>⋅</text>
|
||||
<text transform='translate(12.87,156.19) rotate(-90)' style='font-size: 7.70px; font-family: "Arial";' textLength='3.68px' lengthAdjust='spacingAndGlyphs'>s</text>
|
||||
<text transform='translate(9.47,152.51) rotate(-90)' style='font-size: 5.50px; font-family: "Symbol";' textLength='3.30px' lengthAdjust='spacingAndGlyphs'>−</text>
|
||||
<text transform='translate(9.47,149.21) rotate(-90)' style='font-size: 5.50px; font-family: "Arial";' textLength='3.15px' lengthAdjust='spacingAndGlyphs'>2</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 7.7 KiB |
Reference in New Issue
Block a user