subaxis allows you to adjust the spacing in a subplot. Use subaxis instead of subplot.
% To fill the first column of a 4 by 3 plot:
h = subaxis(4,3,(i*3-2), 'Spacing', 0.045);
Saturday, November 17, 2012
Monday, October 29, 2012
rounded buttons
Say you want some rounded buttons on a webpage, and you make your buttons in Powerpoint because you don't know what else to do. You may run in to problems for cropping those rounded buttons because most crop programs make only exact rectangles.
Here is a solution:
Here is a solution:
- Make the buttons in Powerpoint (or Illustrator)
- If you made them in powerpoint, screenshot a high resolution version (I did this from opening a PDF saved from the Powerpoint in Illustrator.)
- Open screenshot in Photoshop. (mine was a .png)
- Press "C" to open the crop tool and crop close in to the button, then press "return" to crop.
- If your button is outlined, press "W" for the wand tool and click to outline the surrounding area outside the button.
- With the outside area highlighted, press "delete"
- Save for a web device, GIF, transparency "background color" (this will make the area around the button transparent so you can have rounded buttons)
Here's an example of the result:
Labels:
html
remove unwanted link underlining
Some website templates will automatically underline any links you have, even image links, which is a little unsightly.
You can get rid of it by surrounding the image with a div style tag:
You can get rid of it by surrounding the image with a div style tag:
<div style="text-decoration: none;"> </div>
And to display greater than or less than signs in html (like above) you can use < and >
Labels:
html
Monday, October 22, 2012
TeX stack exchange
What are all of these sites, too many to keep track of:
http://tex.stackexchange.com/
This is a collaboratively edited question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Posts 4, 12, 18, 18, and 19 minutes ago...
http://tex.stackexchange.com/
This is a collaboratively edited question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Posts 4, 12, 18, 18, and 19 minutes ago...
Labels:
latex
Thursday, October 4, 2012
software carpentry
This site is designed to "help scientists be more productive by teaching them basic computing skills."
http://software-carpentry.org/
It looks potentially super useful. There are MATLAB, python, and versioning sections, among many others.
http://software-carpentry.org/
It looks potentially super useful. There are MATLAB, python, and versioning sections, among many others.
Saturday, September 8, 2012
figures in latex
Q: I want to put a figure into a latex document. I am trying things, but the image is not appearing when I compile it.
A: You need to use:
\usepackage[pdftex]{graphicx} instead of
\usepackage[dvips]{graphicx}.
[klf]
A: You need to use:
\usepackage[pdftex]{graphicx} instead of
\usepackage[dvips]{graphicx}.
[klf]
Labels:
latex
Monday, August 13, 2012
Subscribe to:
Posts (Atom)