Skip to content

Instantly share code, notes, and snippets.

@takumim
Last active July 27, 2017 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takumim/2cfefa4487accf70cffb053e6070f1a1 to your computer and use it in GitHub Desktop.
Save takumim/2cfefa4487accf70cffb053e6070f1a1 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
\documentclass[12pt]{article}
\usepackage{stix}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[domain=0:5]
\path[fill=gray!20] (0,3) -- (4,0) -- (4.9,0) -- (4.9,3.9) -- (0,3.9) -- (0,3);
\draw[very thin,color=gray] (-0.1,-0.1) grid (4.9,3.9);
\draw[->] (-0.2,0) -- (5.1,0);
\draw[->] (0,-0.2) -- (0,4.1);
\filldraw[black] (0,3) circle (2pt);
\filldraw[black] (3,1) circle (2pt);
\filldraw[black] (4,0) circle (2pt);
\draw[dashed] (0,3) -- (4,0);
\end{tikzpicture}
\end{document}
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
\documentclass[12pt]{article}
\usepackage{stix}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzpicture}[domain=0:2]
\path[fill=gray!20] (0,1) -- (1,0) -- (1.9,0) -- (1.9,3.9) -- (0,3.9) -- (0,1);
\draw[very thin,color=gray] (-0.1,-0.1) grid (1.9,3.9);
\draw[-cm to] (-0.2,0) -- (2.1,0);
\draw[-cm to] (0,-0.2) -- (0,4.1);
\filldraw[black] (1,1) circle (2pt);
\filldraw[black] (1,0) circle (2pt);
\filldraw[black] (0,3) circle (2pt);
\filldraw[black] (0,2) circle (2pt);
\filldraw[black] (0,1) circle (2pt);
\draw[dashed] (0,1) -- (1,0);
\end{tikzpicture}
\end{document}
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="131pt" height="170pt" viewBox="0 0 131 170" version="1.1">
<defs>
<clipPath id="clip1">
<path d="M 7 0 L 9 0 L 9 169.660156 L 7 169.660156 Z M 7 0 "/>
</clipPath>
<clipPath id="clip2">
<path d="M 76 151 L 98 151 L 98 169.660156 L 76 169.660156 Z M 76 151 "/>
</clipPath>
<clipPath id="clip3">
<path d="M 0 114 L 95 114 L 95 169.660156 L 0 169.660156 Z M 0 114 "/>
</clipPath>
</defs>
<g id="surface1">
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(89.99939%,89.99939%,89.99939%);fill-opacity:1;" d="M 8.273438 122.308594 L 86.9375 161.636719 L 122.335938 161.636719 L 122.335938 8.246094 L 8.273438 8.246094 L 8.273438 122.308594 "/>
<path style="fill:none;stroke-width:0.19925;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(50%,50%,50%);stroke-opacity:1;stroke-miterlimit:10;" d="M -2.833532 0.000986126 L 82.205883 0.000986126 M -2.833532 28.345581 L 82.205883 28.345581 M -2.833532 56.692991 L 82.205883 56.692991 M -2.833532 85.040401 L 82.205883 85.040401 M -0.00132432 -2.834036 L -0.00132432 110.552788 M 28.346086 -2.834036 L 28.346086 110.552788 M 56.693495 -2.834036 L 56.693495 110.552788 " transform="matrix(1.3875,0,0,-1.3875,8.275275,161.638087)"/>
<path style="fill:none;stroke-width:0.3985;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:10;" d="M -5.668554 0.000986126 L 87.476153 0.000986126 " transform="matrix(1.3875,0,0,-1.3875,8.275275,161.638087)"/>
<path style="fill:none;stroke-width:0.3985;stroke-linecap:round;stroke-linejoin:round;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:10;" d="M -2.072086 2.391189 C -1.694833 0.955378 -0.850239 0.279702 -0.0000135135 0.000986126 C -0.850239 -0.27773 -1.694833 -0.956221 -2.072086 -2.392032 " transform="matrix(1.3875,0,0,-1.3875,129.9258,161.638087)"/>
<g clip-path="url(#clip1)" clip-rule="nonzero">
<path style="fill:none;stroke-width:0.3985;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:10;" d="M -0.00132432 -5.669059 L -0.00132432 115.823058 " transform="matrix(1.3875,0,0,-1.3875,8.275275,161.638087)"/>
</g>
<path style="fill:none;stroke-width:0.3985;stroke-linecap:round;stroke-linejoin:round;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:10;" d="M -2.071964 2.391527 C -1.694712 0.955716 -0.850117 0.280041 0.000108108 0.00132432 C -0.850117 -0.280207 -1.694712 -0.955883 -2.071964 -2.391694 " transform="matrix(0,-1.3875,-1.3875,0,8.275275,0.6564)"/>
<path style="fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;stroke-width:0.3985;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:10;" d="M 58.686739 85.040401 C 58.686739 86.141189 57.794284 87.033644 56.693495 87.033644 C 55.592707 87.033644 54.700252 86.141189 54.700252 85.040401 C 54.700252 83.939612 55.592707 83.047157 56.693495 83.047157 C 57.794284 83.047157 58.686739 83.939612 58.686739 85.040401 Z M 58.686739 85.040401 " transform="matrix(1.3875,0,0,-1.3875,8.275275,161.638087)"/>
<path style="fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;stroke-width:0.3985;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:10;" d="M 58.686739 56.692991 C 58.686739 57.793779 57.794284 58.686234 56.693495 58.686234 C 55.592707 58.686234 54.700252 57.793779 54.700252 56.692991 C 54.700252 55.592202 55.592707 54.699747 56.693495 54.699747 C 57.794284 54.699747 58.686739 55.592202 58.686739 56.692991 Z M 58.686739 56.692991 " transform="matrix(1.3875,0,0,-1.3875,8.275275,161.638087)"/>
<path style="fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;stroke-width:0.3985;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:10;" d="M 58.686739 28.345581 C 58.686739 29.446369 57.794284 30.338824 56.693495 30.338824 C 55.592707 30.338824 54.700252 29.446369 54.700252 28.345581 C 54.700252 27.247608 55.592707 26.355153 56.693495 26.355153 C 57.794284 26.355153 58.686739 27.247608 58.686739 28.345581 Z M 58.686739 28.345581 " transform="matrix(1.3875,0,0,-1.3875,8.275275,161.638087)"/>
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 89.703125 161.636719 C 89.703125 160.109375 88.464844 158.875 86.9375 158.875 C 85.410156 158.875 84.171875 160.109375 84.171875 161.636719 C 84.171875 163.164062 85.410156 164.402344 86.9375 164.402344 C 88.464844 164.402344 89.703125 163.164062 89.703125 161.636719 Z M 89.703125 161.636719 "/>
<g clip-path="url(#clip2)" clip-rule="nonzero">
<path style="fill:none;stroke-width:0.3985;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:10;" d="M 58.686739 0.000986126 C 58.686739 1.101774 57.794284 1.991414 56.693495 1.991414 C 55.592707 1.991414 54.700252 1.101774 54.700252 0.000986126 C 54.700252 -1.099802 55.592707 -1.992257 56.693495 -1.992257 C 57.794284 -1.992257 58.686739 -1.099802 58.686739 0.000986126 Z M 58.686739 0.000986126 " transform="matrix(1.3875,0,0,-1.3875,8.275275,161.638087)"/>
</g>
<path style="fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;stroke-width:0.3985;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:10;" d="M 30.339329 56.692991 C 30.339329 57.793779 29.446874 58.686234 28.346086 58.686234 C 27.245297 58.686234 26.355658 57.793779 26.355658 56.692991 C 26.355658 55.592202 27.245297 54.699747 28.346086 54.699747 C 29.446874 54.699747 30.339329 55.592202 30.339329 56.692991 Z M 30.339329 56.692991 " transform="matrix(1.3875,0,0,-1.3875,8.275275,161.638087)"/>
<path style="fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;stroke-width:0.3985;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:10;" d="M 30.339329 28.345581 C 30.339329 29.446369 29.446874 30.338824 28.346086 30.338824 C 27.245297 30.338824 26.355658 29.446369 26.355658 28.345581 C 26.355658 27.247608 27.245297 26.355153 28.346086 26.355153 C 29.446874 26.355153 30.339329 27.247608 30.339329 28.345581 Z M 30.339329 28.345581 " transform="matrix(1.3875,0,0,-1.3875,8.275275,161.638087)"/>
<path style="fill-rule:nonzero;fill:rgb(0%,0%,0%);fill-opacity:1;stroke-width:0.3985;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-miterlimit:10;" d="M 1.991919 28.345581 C 1.991919 29.446369 1.099464 30.338824 -0.00132432 30.338824 C -1.099297 30.338824 -1.991752 29.446369 -1.991752 28.345581 C -1.991752 27.247608 -1.099297 26.355153 -0.00132432 26.355153 C 1.099464 26.355153 1.991919 27.247608 1.991919 28.345581 Z M 1.991919 28.345581 " transform="matrix(1.3875,0,0,-1.3875,8.275275,161.638087)"/>
<g clip-path="url(#clip3)" clip-rule="nonzero">
<path style="fill:none;stroke-width:0.3985;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);stroke-opacity:1;stroke-dasharray:2.98883,2.98883;stroke-miterlimit:10;" d="M -0.00132432 28.345581 L 56.693495 0.000986126 " transform="matrix(1.3875,0,0,-1.3875,8.275275,161.638087)"/>
</g>
</g>
</svg>
\documentclass[12pt]{article}
\usepackage{stix}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzpicture}[domain=0:3]
\path[fill=gray!20] (0,1) -- (2,0) -- (2.9,0) -- (2.9,3.9) -- (0,3.9) -- (0,1);
\draw[very thin,color=gray] (-0.1,-0.1) grid (2.9,3.9);
\draw[-cm to] (-0.2,0) -- (3.1,0);
\draw[-cm to] (0,-0.2) -- (0,4.1);
\filldraw[black] (2,3) circle (2pt);
\filldraw[black] (2,2) circle (2pt);
\filldraw[black] (2,1) circle (2pt);
\filldraw[black] (2,0) circle (2pt);
\filldraw[black] (1,2) circle (2pt);
\filldraw[black] (1,1) circle (2pt);
\filldraw[black] (0,1) circle (2pt);
\draw[dashed] (0,1) -- (2,0);
\end{tikzpicture}
\end{document}
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
\documentclass[12pt]{article}
\usepackage{stix}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzpicture}[domain=0:7]
\path[fill=gray!20] (0,1) -- (1,0) -- (6.9,0) -- (6.9,3.9) -- (0,3.9) -- (0,1);
\draw[very thin,color=gray] (-0.1,-0.1) grid (6.9,3.9);
\draw[-cm to] (-0.2,0) -- (7.1,0);
\draw[-cm to] (0,-0.2) -- (0,4.1);
\filldraw[black] (6,3) circle (2pt);
\filldraw[black] (6,2) circle (2pt);
\filldraw[black] (6,1) circle (2pt);
\filldraw[black] (6,0) circle (2pt);
\filldraw[black] (4,2) circle (2pt);
\filldraw[black] (4,1) circle (2pt);
\filldraw[black] (4,0) circle (2pt);
\filldraw[black] (3,2) circle (2pt);
\filldraw[black] (3,1) circle (2pt);
\filldraw[black] (3,0) circle (2pt);
\filldraw[black] (2,1) circle (2pt);
\filldraw[black] (2,0) circle (2pt);
\filldraw[black] (1,1) circle (2pt);
\filldraw[black] (1,0) circle (2pt);
\filldraw[black] (0,1) circle (2pt);
\draw[dashed] (0,1) -- (1,0);
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment