X

Help Articles are product support tips and information straight from the NV5 Geospatial Technical Support team developed to help you use our products to their fullest potential.



7000 Rate this article:
3.0

Formatting examples for plot axis titles

The following code example shows how font styles are applied to text used in the titles of the plot axes. For a more detailed look at the different format codes available in IDL please refer to the IDL Help Table of Contents under the this heading:

IDL Programming > Concepts > Format Codes


; *********************************


pro funky_fonts


; Create sample data representing a sine wave

coolwave = sin(2.0*findgen(200)*!pi/25.0)*exp(-0.02*findgen(200))

; Create the plot where the following IDL formatting codes for

; TrueType fonts are applied:
; !8 - Times Italic font
; !4 - Helvetica Bold
; $\circ$ - creates the degree symbol
; m3D-  magenta,thickness 3, diamond,
plot1 = plot(coolwave, "m3D-", title="Sine Wave", $
            xtitle='Test    !8string!X     for X-axis', $
            ytitle= '!4Degrees!X !8Fahrenheit!X ($\circ$F)')
            
; ...and now set some properties for plot1
plot1.sym_increment =10   ;number of plot vertices between symbols
plot1.sym_color ="dark blue"    ;color for the plot symbol outline
plot1.sym_filled = 1        ;to fill the symbols
plot1.sym_fill_color = 'light gray'   ;color for the filled portion of the symbol
plot1.sym_size = 2.8

END


; *********************************
Please login or register to post comments.
Featured

End-of-Life Policy Enforcement for ENVI 5.3 / IDL 8.5 and Earlier Versions

5/6/2024

April 1, 2024 Dear ENVI/IDL Customer,  We are reaching out to notify you of our supported... more »

How to Upgrade licenses to ENVI 6.x / IDL 9.x

12/5/2023

What is the new Upgrade function? Starting with ENVI 6.0 and IDL 9.0, we have implemented an... more »

What to do if the 'License Administrator - License Server' for the Next-Generation License Server does not start?

6/13/2023

Background: With the release of ENVI 5.7 & IDL 8.9 and the corresponding Next-Generation licensing... more »

Next-Generation Licensing FAQ

4/28/2023

  NV5 Geospatial has adopted a new licensing technology for all future releases of our ENVI, IDL... more »

The IDL Virtual Machine

6/6/2013

What is the IDL Virtual Machine? An IDL Virtual Machine is a runtime version of IDL that can... more »