1

I'd like to overlay a scientific form number on a ListPlot at a particular position.

Simply using Text[ToString@value, {xpos,ypos}] separates the exponent from the number and increases the font size. I found several posts about exponential notation for axes labels etc but I've not found one for this. I think one way would be to somehow convert the ScientificForm object into a Graphics object, then I could place it anywhere.

I think this must be a duplicate question as it seems so fundamental but I'm clearly searching for the wrong expressions!

MarcoB
  • 67,153
  • 18
  • 91
  • 189
DrBubbles
  • 1,391
  • 9
  • 17

1 Answers1

1

You can use the Text graphics primitive to place a ScientificForm expression anywhere in a graphics pane without resorting to string conversion. For example,

Graphics[{
  Circle[], 
  Text[Style[ScientificForm[N[Pi 1*^10], 8], 14, Bold, Red], Scaled @ {.5, .9}]}]

produces

circle

I didn't bother to introduce Epilog here, but Text expression like this one are perfectly acceptable in a list of graphic primitives given to Epilog.

m_goldberg
  • 107,779
  • 16
  • 103
  • 257