Annika Peter |
Research & Interests |
CV |
Graphical Guide to SM |
Photos |
Travel |
Links |
![]() |
:dev x11 :ctype black :set x=0.0,10.0,1.0 :set y=x**2 :lim x y :box :con x y :ptype 10 3 :points x y :xlabel x :ylabel y |
I'll go through these commands step-by-step to show you what they mean, and then show you how to modify the commands to make your simple plot much more beautiful. Once the plot is beautiful enough for my taste, I will show you how to print it to postscript, and how to save your command history so that you can remake the plot in one second or less.
![]() |
|
![]() |
|
|
|
![]() |
|
![]() |
Note that tic marks are labeled when you invoke the "box" command. Also note that the font labeling the tics is really small. You can alter the font size using the "expand" command. For example, if you use the following set of commands, you will get the plot on the left:
:ctype black :set x=0.0,10.0,1.0 :set y=x**2 :expand 1.5 :lim x y :box Much better! |
![]() |
|
![]() |
v
|
![]() |
|
![]() |
|
![]() |
These are the basic colors in Supermongo. You can change colors (e.g., red) using the following command: :ctype red |
![]() |
This is what the colors look like when you convert to greyscale using a conventional color-to-greyscale mapping. Keep this in mind when you ask that your pretty color plots be printed in greyscale in a journal. |
![]() |
There are several ways to expand the color palette in SuperMongo. Probably the easiest thing to do is to load the "xtcolors" (or "xtcolours" for Anglophiles) macro, which is located in the "default" file in the SuperMongo "macro" folder. You load this simply by writing :xtcolors on the command line. You can also add a color type using an RGB coding using the "add_cytpe" macro, which has syntax: :add_ctype darkgold 170 170 0 In the plot on the left, I show the colors included in xtcolors as well as a few I made using the "add_ctype" macro. |
![]() |
FYI, this is what the colors look like using a typical greyscale mapping. |
![]() |
There are seven basic line types in SM, which you can implement at any thickness you might desire. Here is what they look like. The Supermongo macro for this plot is "lineplot" in this script. |
![]() |
As you can see from the plot on the left, there are many possible symbols you can choose for your points, and you can make them any size you want. In addition, you can rotate them. The syntax is "ptype Number-of-sides-on-the-symbol Type-of-fill". For "Type-of-fill", "0" corresponds to having an outline but no fill, "1" corresponds to having lines run from the corners of what would have been the outline of the point to the center, "2" corresponds to having the outline of the symbol pinched in at the halfway point on each line segment, and "3" corresponds to having a filled symbol. You can also rotate symbols, which is most useful for triangles, as you can see in the right-most symbols on the plot. The syntax for the top-right symbol is "angle 90 ptype 3 0". Remember to set the angle to zero after making the points or else all your text and so forth will be rotated. One thing I'd like to point out (ha ha ha) is that it is usually better to use "ptype 10 0" or "ptype 10 3" to make unfilled or filled circular points instead of "ptype 1 0", for the reason that you get a much bigger (and easier-to-read) symbol. You can see the script for this plot here. |