Search code examples
wolfram-mathematicamathematica-8

Save plot options in list


I wonder if it is possible to make a variable that holds info obout wanted style for Show[] function. So ewery time i want to display plots in Show[] i will insert that variable in Show[] to set options for style.

I want something like this...

OPTIONS=
     AxesOrigin -> Automatic,
     LabelStyle -> Directive[14, Black, Bold, Italic],
     ImageSize -> {450}

    Show[
     ListLinePlot[data],
     OPTIONS
     ]

The solution is simple but im green. :)


Solution

  • OPTIONS = {AxesOrigin -> Automatic, 
      LabelStyle -> Directive[14, Red, Bold, Italic], ImageSize -> {450}}
    
    Show[ListLinePlot[{1, 2, 3, 4, 5}], OPTIONS]
    

    Works for me.