Wednesday, August 28, 2013

Responsive Design with CSS

Fantastic tutorial here on Responsive Design using CSS.

From the post:
Responsive web design is the practice of building a website suitable to work on every device and every screen size, no matter how large or small, mobile or desktop. Responsive web design is focused around providing an intuitive and gratifying experience for everyone. Desktop computer and cell phone users alike all benefit from responsive websites.


Wednesday, May 22, 2013

Adding a colorbar to a plot


# Create the maps in a subset of the figure: we leave space for the colorbar v = viz.plot_map(data, affine, axes=[0., 0., 0.9, 1.])
# Create a dedicated Axis for the colorbar cax = v.axes['z'].ax.get_figure().
add_axes([0.9, 0.1, 0.03, 0.8])
# Add the colorbar relatively to the "seconde layer" of the last map colorbar(v.axes['z'].ax.
images[1], cax=cax)



To correctly position the colorbar you can first create an axis/figure that you pass as plot_map arguments.

fig = pl.figure(figsize=(6, 3), facecolor='w', edgecolor='w')
ax = pl.axes([.02, .0, .83, .95], axisbg='w')
slicer = plot_map(tag_map, affine, title=title, cmap=pl.cm.hot,
                      vmin=-vmax, vmax=vmax, figure=fig, axes=ax)
cax = slicer.axes['z'].ax.get_figure().add_axes([.87, .1, .03, .8])
pl.colorbar(slicer.axes['x'].ax.images[1], cax=cax)

Saturday, April 27, 2013

Awesome List of Free Science Books

Great list of free science books.

See here

----------------------------------------------------------------------------


A
B
C
D
E
F
G
H
I
L
M
N
O
P
Q
R
S
T
U




Thursday, November 29, 2012

Autoreload


Executing this on ipython forces ipython to reload functions each time it executes them, really usefull if you are testing and modifying at the same time!

%load_ext autoreload
%autoreload 2

Wednesday, November 28, 2012

Tuesday, November 20, 2012

Pythonize your emacs

Awesomely simple step by step guides for setting up a Python environment on emacs.

Basic Environment:
http://www.yilmazhuseyin.com/blog/dev/basic-emacs-setup/

Further Setup:
http://www.yilmazhuseyin.com/blog/dev/emacs-setup-python-development/

The posts were written by Huseyin Yilmaz

Monday, August 6, 2012

Return to things that are meaningful

This inspires me everytime and is worth remembering..


Return to Awe - Jason Silva & the Melodysheep