- matplotlib.pyplot.margins(*args, **kw)
- Set or retrieve autoscaling margins.
signatures:
returns xmargin, ymarginmargins()
margins(margin) margins(xmargin, ymargin) margins(x=xmargin, y=ymargin) margins(..., tight=False)
http://matplotlib.org/1.3.1/api/pyplot_api.html#matplotlib.pyplot.margins
Friday, January 27, 2017
python pyplot graph margins
Sunday, December 18, 2016
latex change line spacing in short text block or caption
e.g. to increase line spacing: \linespread{1.3}\selectfont{}
(specify a ratio in argument of \linespread{X.XXX})
Src: http://tex.stackexchange.com/questions/113626/changing-spacing-of-caption
revtex and algorithm error
Floating environments created with the
The only way you have to include such an environment in your document, is to use the floating specifier
MWE:
float package (as algorithm is) are incompatible with the revtex4-1 class.The only way you have to include such an environment in your document, is to use the floating specifier
H, which avoids the environment to float.MWE:
\documentclass[aip, amsmath, amssymb, reprint]{revtex4-1}
\usepackage{graphicx}
\usepackage{dcolumn}
\usepackage{bm}
%\usepackage{float} % loaded by algorithm
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{lipsum} % just for dummy text
\begin{document}
\lipsum[1]
\begin{algorithm}[H]
\caption{Hello}
\label{EPSA}
\begin{algorithmic}[1]
\State $T_m= \min\limits_k (T_c(k)), k_m= \arg\min\limits_k (T_c(k))$
\end{algorithmic}
\end{algorithm}
\lipsum[1]
\end{document}
Src: http://tex.stackexchange.com/questions/231191/algorithm-in-revtex4-1
Thursday, November 10, 2016
How to get WYSIWYP (print what you see) in a web browser
I have found only one option that truly addresses my needs: The "Web Developer" add-on / extension developed by Chris Pederick.
With this plugin you can very easily disable ALL styles, Default styles, inline styles, embedded styles, and, you guessed it, print styles! SRC: http://superuser.com/questions/846082/how-to-get-wysiwyp-print-what-you-see-in-a-web-browser
Friday, September 23, 2016
Change the language in Emacs when using ispell spellcheck
|
The following command proposes a list of installed dictionaries to use:
Usually, M-x isp-c-d expands to the above also.
Src: http://stackoverflow.com/questions/218512/how-can-i-change-the-language-in-emacs-when-using-ispell
|
Friday, September 9, 2016
inkscape latex math font
When a quick and simplistic latex-style formula is needed in Inkscape, the "Latin Modern Roman" font may be used. Latest versions of Inkscape incorporate buttons to create subscripts and supersripts when editing text.
Thursday, September 1, 2016
pyplot tex / latex interpreter
### setup use of TEX for labels ###
plt.rc('text', usetex=True)
plt.rc('font', family='serif')
### define label ###
s="\textbf{Bold}"
s= s.encode('string-escape')
ax.set_ylabel(s)
plt.rc('text', usetex=True)
plt.rc('font', family='serif')
### define label ###
s="\textbf{Bold}"
s= s.encode('string-escape')
ax.set_ylabel(s)
Subscribe to:
Posts (Atom)