Posts

Showing posts from August, 2012

Horizontal Line in Latex

\begin{center}
    \line(x-slope,y-slope){length}
\end{center}

For example: \line(1,0){250}






Matplotlibs colors

Here is a list of some weirds colors you can use to change the always classic colors.
For example:     ax.scatter(band1, band2, s=size_point, color='tomato')


cnames={'aliceblue':'#F0F8FF', 'antiquewhite':'#FAEBD7', 'aqua':'#00FFFF', 'aquamarine':'#7FFFD4', 'azure':'#F0FFFF', 'beige':'#F5F5DC', 'bisque':'#FFE4C4', 'black':'#000000', 'blanchedalmond':'#FFEBCD', 'blue':'#0000FF', 'blueviolet':'#8A2BE2', 'brown':'#A52A2A', 'burlywood':'#DEB887', 'cadetblue':'#5F9EA0', 'chartreuse':'#7FFF00', 'chocolate':'#D2691E', 'coral':'#FF7F50', 'cornflowerblue':'#6495ED', 'cornsilk':'#FFF8DC', 'crimson':'#DC1…

Installing matplotlib under Mountain Lion

Follow this steps in order:
[carpincho@MacBook-2]$ pip install numpy[carpincho@MacBook-2]$ pip install -e git+https://github.com/scipy/scipy#egg=scipy-dev[carpincho@MacBook-2]$ pip install git+https://github.com/matplotlib/matplotlib.git#egg=matplotlib-dev

source and a link to an explanation why numpy and matplotlib can't be installed using pip straightforward