The command line is a large part of any Matlab user’s workflow. This vital tool, however, isn’t as user friendly as it should be: it’s cumbersome to recall multi-line commands from the history, there’s no support for Vim key bindings, and there’s no syntax highlighting if using the nodesktop option (on a remote computer, say). Fortunately, there’s an alternative that avoids these problems: IMatlab.
Scientists should invest time in a good text editor: pay the upfront cost of learning to use and customising a single editor for all of your text needs. This may be obvious to programmers, but less so to scientists who may have yet to recognise the benefits of a good editor.
Much scientific analysis and documentation can be achieved with plain text files (e.g., .py, .m, .f, .r, .tex, or .md). The default method to work with multiple file types is to use multiple IDEs (Integrated Development Environments): Matlab for m-files, Spyder or IPython notebooks for python scripts, TexStudio or TeXnicCenter for latex files, RStudio for R, or one of the countless editors for Markdown currently available.
Using a single editor has many benefits over using a range of editors within each IDE:
To allude to a StackExchange thread, The problem with scientific posters is that they look like scientific posters. Defining characteristics include a lack of whitespace, unattractive borders, poor colour use, and poor fonts use. Using a recent scientific poster of my own as a example, I explain how to create a clean, elegant poster with minimal artistic talent.
Scientific papers are built by taking existing ideas, applying them in new ways, adapting them to fit new situations, and improving them over time. Yet when it comes to drawing a schematic, many people start from scratch or never even start. Instead, start with an image search, let Inkscape do the hard work, and refine the best parts of other schematics.
Placing text over a full-size photo is a standard way to create a title slide. But by being everyone’s go-to method, it’s forgettable. Instead, use a photographic triptych: three tall photos spanning the slide.
Here’s a real-life example, the title slide from my most recent presentation:
Vector images are great, except when they shouldn’t be vector. Figures with intricate detail can actually benefit from being rasterized. This can reduce file size and help the figure load more quickly. Python’s Matplotlib has an option to rasterize certain elements, but it doesn’t always work as simply as expected.
This post describes a function that (i) lets you rasterize any chosen elements when you export the figure and (ii) overcomes problems with the current implementation of rasterizing objects with Matplotlib.
Round to two significant figures is the first of what statistician Andrew Ehrenberg describes as Six Basic Rules in his Rudiments of Numeracy. It contradicts the standard rules about significant figures taught in school, but I agree with Ehrenberg.