16 Jun, 2025
Skip to content
  • Home
  • Gallery
  • Tutorials
  • Thomas Lecocq @ ROB
    • Research Fields
    • Publications
  • About
  • Cookie Policy

Géophysique.be

Thomas Lecocq @ the Royal Observatory of Belgium

  • Home
  • Gallery
  • Tutorials
  • Thomas Lecocq @ ROB
    • Research Fields
    • Publications
  • About
  • Cookie Policy
  • Home
  • 2010
  • December

Month: December 2010

San Francisco is full of waves !

14 December 2010 Thomas LecocqGéophysique - Geophysics, Information

Live from AGU Fall Meeting 2010, I can’t resist to share some waves with you all !!

earthquake, photo, san francisco, waveLeave a comment

Matplotlib Fonts (plots, basemaps, etc.)

7 December 20108 December 2010 Thomas LecocqPython, Tips & Tricks

Here is the trick (well documented on the matplotlib webpage) to define the font family and size of what appears on your matplotlib plot:

basemap, configuration, customize, font, matplotlib1 Comment

Numpy Trick 01

6 December 20106 December 2010 Thomas LecocqPython, Tips & Tricks

I usually forget how much Numpy makes life easy : Say, you have a 101 element array, e.g.: import numpy as np a = np.linspace(0,100,101) and you want to take every 4th item in that array, that’s as easy as…

indexing, numpy, slicing1 Comment

Numpy.ma not always necessary

2 December 20102 December 2010 Thomas LecocqPython

I just discovered that there is an easier way to do this (e.g. from tutorial06): import numpy.ma as ma mask = ma.masked_where(countries[‘ISO’] != iso, countries[‘ISO’]) country = ma.array(countries[‘country’],mask=mask.mask).compressed()[0] by using the built-in numpy.where method: import numpy as np index =…

mask, numpy, numpy.ma, numpy.where1 Comment

Don’t be scared …

2 December 20102 December 2010 Thomas LecocqAnnonce, Information

Don’t be scared, you are on geophysique.be ! I’m just trying some new themes for this blog/website. I want to make it more readable, but also easier to search/scroll. I kinda like this “eos” theme, the “content” column is nice…

2 Comments

Search

Recent

  • Emails to SMS on a FoxBox 30 October 2014
  • Earthworm statmgr replacement 22 July 2014
  • Playing with PICs – The beginning 1 May 2014
  • Shaded Relief Map in Python 25 February 2014
  • Relief Maps in Google Earth 10 January 2014

Recent Comments

  • Natalia Poiata on Matplotlib Basemap tutorial 09: Drawing circles
  • Thomas Lecocq on Seismicity Map and Rate using Basemap and Pandas
  • vgb on Seismicity Map and Rate using Basemap and Pandas
  • python - L'installazione di shapefile / shapelib non trovato via condã o pip on Matplotlib Basemap tutorial 10: Shapefiles Unleached, continued
  • Jon on Resistivity Data Inversion – Use R2 !
Copyright © All rights reserved.
Start Magazine by Axle Themes
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
SAVE & ACCEPT