🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.soft-sys.matlab
4 messages
4 total messages Started by Ye Sun Thu, 21 Jan 1993 19:50
Figure Caption
#7
Author: Ye Sun
Date: Thu, 21 Jan 1993 19:50
16 lines
773 bytes
Hi,

I am currently using MATLAB-4.0 on SPARC station. I mainly use it for scienti-
fic plotting. But I have some problem in writing Greek letters in the figure.
Does anybody know how to do it in MATLAB?  Maybe at least using Latex.

Along with this, how to change the default 'font' and 'linewidth' etc?


Thanks in advance.

Ye Sun
Dept. of Physics
Univ. of So. Cal.

email: ysun@physics.usc.edu
Re: Figure Caption
#12
Author: Douglas Gray Stephens
Date: Fri, 22 Jan 1993 09:17
32 lines
2223 bytes
In article <1jmuqlINNfal@phys2adm.usc.edu> ysun@phys2adm.usc.edu (Ye Sun) writes:
   I am currently using MATLAB-4.0 on SPARC station. I mainly use it
   for scientific plotting. But I have some problem in writing Greek
   letters in the figure.    Does anybody know how to do it in MATLAB?
   Maybe at least using Latex. 

   Along with this, how to change the default 'font' and 'linewidth' etc?

The font issue has been addressed in Matlab version 4.0a (released
11-Dec-92).  Matlab now has extra graphic handles, including FontName,
FontBold, FontSpacing,FontSize, FontItalic, FontUnderline,
FontStrikeThrough, FontShadow, and FontOutline.  This does not help
with the mixing roman and greek characters in the same string.  

I insert greek characters into LaTeX, by saving the matlab file as
Encapuslated PostScript, then reading the file into IslandDraw, which
can read and graphically edit PostScript files.  I then save the file
as EPS from IslandDraw, and insert that file into LaTeX.  (This has
the additional advantage that you get the correct BoundingBox.)

It would be nice when matlab finally manages to generate a legal
Encapsulated PostScript file.

Currently it is not possible to set the linewidth in matlab
(MarkerSize yes).  I've grumbled at MathWorks about this limitation.

--
----------------------------------------------------------------------------
Dr. Douglas GRAY STEPHENS                e-mail : gray@scr.slb.com   
Schlumberger Cambridge Research          Tel/fax: 0223-325303 / 0223-311830
P.O.Box 153, Cambridge CB3 0HG, England  (International prefix for UK: 44)
============================================================================
Re: Figure Caption (mixing LaTeX and matlab plots)
#34
Author: Craig Barratt
Date: Sun, 24 Jan 1993 19:56
52 lines
2944 bytes
In article <1jmuqlINNfal@phys2adm.usc.edu> ysun@phys2adm.usc.edu writes:

>I am currently using MATLAB-4.0 on SPARC station. I mainly use it for scienti-
>fic plotting. But I have some problem in writing Greek letters in the figure.
>Does anybody know how to do it in MATLAB?  Maybe at least using Latex.

I have written some LaTeX macros that make it easy to overlay postscript
figures with fragments of LaTeX.  I use these macros to place nice
LaTeX equations and math symbols on top of postscript figures.  The
macros are available via anonymous ftp as described below.

Description:

* PsFrag is a set of LaTeX macros for overlaying postscript figures with
  fragments of LaTeX.  More precisely, the PsFrag macros allow specific
  pieces of postscript text in a postscript figure (included via \epsfbox
  or \special) to be replaced with arbitrary fragments of LaTeX.  When
  your document is latex'ed and dvips'ed, each piece of postscript text
  is replaced by the LaTeX text.
  
  The postscript file might be produced, for example, by xfig, idraw,
  matlab, xmath, etc.  Each string displayed by postscript's show operator
  is a candidate for replacement by LaTeX text, math symbols, equations,
  pictures etc.  For example, you can include a matlab plot in a LaTeX
  document with the title, axis labels, and legend generated by LaTeX.

  The LaTeX fragments can be optionally rotated, scaled, and repositioned
  relative to the text being replaced.  The LaTeX fragments automatically
  track the postscript text position as the scaling and offsets of the
  \special or \epsfbox are changed.

* PsFrag is available via anonymous ftp from isl.stanford.edu
  (internet address 36.60.0.10).  Get the compressed tar file

	pub/boyd/psfrag/psfrag.tar.Z

  Extract the archive using uncompress and tar xvf (or gtar zxvf):

	uncompress psfrag.tar.Z
	tar xvf psfrag.tar

  See the files README, USAGE, INSTALL for detailed information.
  If you can't ftp then I can email you a uuencoded version.

* Note: PsFrag uses ghostscript (gs) from the gnu distribution, and assumes
  that your dvi to ps driver is Tomas Rokicki's dvips (Radical Eye Software).
  You will need both of these programs to use PsFrag.  Basically, PsFrag uses
  ghostscript to interpret the postscript figure and spit out a LaTeX
  picture environment that exactly lines up with the postscript figure.

Craig Barratt
craig@isl.stanford.edu
Re: Figure Caption
#57
Author: Sam Sirlin
Date: Mon, 25 Jan 1993 19:02
16 lines
1225 bytes
In article <GRAY.93Jan22091732@snow.scr.slb.com>, gray@snow.scr.slb.com (Douglas Gray Stephens) writes:

|> I insert greek characters into LaTeX, by saving the matlab file as
|> Encapuslated PostScript, then reading the file into IslandDraw, which
|> can read and graphically edit PostScript files.  I then save the file

Not having IslandDraw, I just use the unlabeled (more likely partially
labeled) matlab file in TeX with psfig, then add labels directly using
TeX motion commands (\hskip, \vskip), moving things around till they
look ok in ghostview (xtex isn't always reliable where figures are
concerned).

-- 
Sam Sirlin
Jet Propulsion Laboratory         sam@kalessin.jpl.nasa.gov
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads