Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Python

Vertical and horizontal lines in Matplotlib

1
2
3
4
#vert line
axvline(x=4.,color='k',ls='dashed')
#horiz line
axhline(y=2.,color='k',ls='dashed')
https://snipt.net/embed/3580f654ccc8f9945eb560e6368c35a6/
https://snipt.net/raw/3580f654ccc8f9945eb560e6368c35a6/
3580f654ccc8f9945eb560e6368c35a6
python
Python
5
2016-12-11T04:51:34
True
False
False
Nov 20, 2012 at 01:48 PM
/api/public/snipt/50524/
vertical-and-horizontal-lines-in-matplotlib
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1">#vert line</span> </span><span id="L-2"><a name="L-2"></a><span class="n">axvline</span><span class="p">(</span><span class="n">x</span><span class="o">=</span><span class="mf">4.</span><span class="p">,</span><span class="n">color</span><span class="o">=</span><span class="s1">&#39;k&#39;</span><span class="p">,</span><span class="n">ls</span><span class="o">=</span><span class="s1">&#39;dashed&#39;</span><span class="p">)</span> </span><span id="L-3"><a name="L-3"></a><span class="c1">#horiz line</span> </span><span id="L-4"><a name="L-4"></a><span class="n">axhline</span><span class="p">(</span><span class="n">y</span><span class="o">=</span><span class="mf">2.</span><span class="p">,</span><span class="n">color</span><span class="o">=</span><span class="s1">&#39;k&#39;</span><span class="p">,</span><span class="n">ls</span><span class="o">=</span><span class="s1">&#39;dashed&#39;</span><span class="p">)</span> </span></pre></div> </td></tr></table>
horizontal, line, matplotlib, vertical

HTML

Vertical Tabs

1
2
3
4
5
<dl class="nice vertical tabs">
  <dd><a href="#vertical1" class="active">Vertical Tab 1</a></dd>
  <dd><a href="#vertical1">Vertical Tab 2</a></dd>
  <dd><a href="#vertical1">Vertical Tab 3</a></dd>
</dl>
https://snipt.net/embed/4086cc6652ec6713851eba85db00c3e5/
https://snipt.net/raw/4086cc6652ec6713851eba85db00c3e5/
4086cc6652ec6713851eba85db00c3e5
html
HTML
5
2016-12-11T00:03:18
True
False
False
/api/public/snipt/32428/
vertical-tabs
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="p">&lt;</span><span class="nt">dl</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;nice vertical tabs&quot;</span><span class="p">&gt;</span> </span><span id="L-2"><a name="L-2"></a> <span class="p">&lt;</span><span class="nt">dd</span><span class="p">&gt;&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;#vertical1&quot;</span> <span class="na">class</span><span class="o">=</span><span class="s">&quot;active&quot;</span><span class="p">&gt;</span>Vertical Tab 1<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;&lt;/</span><span class="nt">dd</span><span class="p">&gt;</span> </span><span id="L-3"><a name="L-3"></a> <span class="p">&lt;</span><span class="nt">dd</span><span class="p">&gt;&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;#vertical1&quot;</span><span class="p">&gt;</span>Vertical Tab 2<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;&lt;/</span><span class="nt">dd</span><span class="p">&gt;</span> </span><span id="L-4"><a name="L-4"></a> <span class="p">&lt;</span><span class="nt">dd</span><span class="p">&gt;&lt;</span><span class="nt">a</span> <span class="na">href</span><span class="o">=</span><span class="s">&quot;#vertical1&quot;</span><span class="p">&gt;</span>Vertical Tab 3<span class="p">&lt;/</span><span class="nt">a</span><span class="p">&gt;&lt;/</span><span class="nt">dd</span><span class="p">&gt;</span> </span><span id="L-5"><a name="L-5"></a><span class="p">&lt;/</span><span class="nt">dl</span><span class="p">&gt;</span> </span></pre></div> </td></tr></table>
responsive, tabs, vertical
Copyrighted, illegal, or inappropriate content? Email [email protected].