ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <dwarnold45@suddenlink.net>
To: Context Mailing List List <ntg-context@ntg.nl>
Subject: Metapost Font Question
Date: Thu, 31 Dec 2009 12:24:43 -0800	[thread overview]
Message-ID: <210F4D29-41A7-4656-B99B-A5E3D44B35BC@suddenlink.net> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 405 bytes --]

All,

The attached Metapost file uses the statsmac package by Anthony Phan. 

http://www-math.univ-poitiers.fr/~phan/statsmac.html

And the package:

mps.tar.gz

To compile the attached file I use:

mpost Untitled.mp
mptopdf Untitled.1

I've attached the resulting file. I am wondering why the "cm" label is set in a larger font than the ticklabels. Can anyone help?


David.






[-- Attachment #1.2.1: Type: text/html, Size: 970 bytes --]

[-- Attachment #1.2.2: Untitled.mp --]
[-- Type: application/octet-stream, Size: 1543 bytes --]

%%% Untitled.mp -- do not edit, generated automatically by Untitled.tex
input statsmac
input mp-tool;
beginfig(1);
LaTeX_unitlength := 28.45274pt;
w := 10*LaTeX_unitlength;
h := 3*LaTeX_unitlength;

defaultfont:="ptmr8r";
defaultscale:=6pt/fontsize defaultfont;

data(Spiders)
"female", 1.49, 688, "female", 1.17, 388, "female", 1.29, 544,
"female", 1.36, 645, "female", 1.05, 264, "female", 1.11, 322,
"female", 1.26, 503, "female", 1.59, 847, "female", 1.29, 540,
"female", 1.17, 382, "female", 1.18, 404, "female", 0.88, 203,
"female", 1.20, 422, "female", 1.10, 307, "female", 1.44, 784,
"female", 1.18, 402, "female", 1.30, 556, "female", 1.20, 419,
"female", 1.39, 690, "female", 1.30, 557,
"male", 0.37, 0, "male", 0.40, 0, "male", 0.44, 0, "male", 0.58, 0,
"male", 0.42, 0, "male", 0.37, 0, "male", 0.40, 0, "male", 0.38, 0,
"male", 0.29, 0, "male", 0.47, 0, "male", 0.51, 0, "male", 0.43, 0,
"male", 0.50, 0, "male", 0.37, 0, "male", 0.39, 0, "male", 0.51, 0,
"male", 0.62, 0, "male", 0.48, 0, "male", 0.50, 0, "male", 0.28, 0;

goptions hatchfill, autogrid, autoframe, opacity;
framebgcolor:=0.95white;
gridcolor:=framefgcolor:=0.5white;

usedata(Spiders, drop, x, drop);
setrange(0.1,1.8,10cm,0,2.2,3cm);
goptions alphafill; alpha:=0.5;
bounds 0.2, 0.35, 0.50, 0.65, 0.80, 0.95, 1.1, 1.25, 1.40, 1.55, 1.70;
histogram(x);
fillcolor:=blue;

pickup rule.nib;
drawarrow gcoord(hmin,0)--gcoord(hmax,0);

pickup thin.nib;
xticks.bot(0) lastbounds;
label.bot(btex \vphantom0cm etex, gcoord(hmax,0));


endfig;
%%% the end.
end.
endinput;

[-- Attachment #1.2.3: Type: text/html, Size: 147 bytes --]

[-- Attachment #1.2.4: Untitled-1.pdf --]
[-- Type: application/pdf, Size: 21446 bytes --]

[-- Attachment #1.2.5: Type: text/html, Size: 147 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2009-12-31 20:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-31 20:24 David Arnold [this message]
2010-01-01  8:26 ` Taco Hoekwater
2010-01-01 18:03   ` David Arnold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=210F4D29-41A7-4656-B99B-A5E3D44B35BC@suddenlink.net \
    --to=dwarnold45@suddenlink.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).