Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • $\begingroup$ Thank you Mr.Wizard for this solution. It works exactly as you described it. Since I want to have multiple functions behave the same way (Plot, LogPlot, ListPlot, ListLogPlot, etc.) I'll stick with Leonid Shifrin's solution. But I'll keep your solution also in mind because it's very lightweight. $\endgroup$ Commented Apr 5, 2013 at 13:50
  • $\begingroup$ @chromate You're welcome. When you say you want to have all those functions behave the same way, can you be more specific? Should they all have the same options or unique to each modified function, e.g. LogPlotFramed, etc.? $\endgroup$ Commented Apr 5, 2013 at 14:18
  • $\begingroup$ They should have most of the options in common but not all of them. A problematic example is GridLines->Automatic and GridLinesStyle->Directive[Gray,Dotted] which I use for my custom Plot function. But for LogLogPlot all the grid lines drive me crazy. So I override GridLines->None for LogLogPlot and LogPlot and so on. I did something similar for PlotStyle where I differ between list plots and non-list plots. For list plots I have to adjust the PointSize whereas PointSize is irrelevant for non list functions. I think it could also be done with your solution. $\endgroup$ Commented Apr 5, 2013 at 15:47