Skip to content

Two line text for plots – multiple line text – carriage return, etc

Define the newline string:

newline = string(10B)

Then incorporate it into the text:

myTwoLineString = ‘First Line’ + newline + ‘Second Line’

From: https://www.nv5geospatialsoftware.com/Support/Forums/aft/1281, entitled:
Character escapes for strings in IDL (carriage returns, etc)

Published inIDL hints

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *