1 Answer
1

Extraction of Export options

To extract the options for specific image export formats automatically, I really don't know an easy way. What you can do is to use Trace in combination with ExportString to investigate what Mathematica is doing. To make the next thing work you have to call e.g. ExportString["test", "GIF"]; for every format at least once:

Setting up options for own functions

Say you want to setup a function which can take its own options, options of Plot and options of NMinimize. Furthermore, you want to specify some of the default option-values for Plot and NMinimize. You can set the function up and use it like follows:

$\begingroup$Already learned your last note the hard way when combining ListPointPLot3D and a ParametricPlot3D both using ColorFunction (used Complement[FilterRules[{opts}, Options[ListPointPlot3D]] , {ColorFunction}] to deal with that), to use ColorFunction to colour just surface.$\endgroup$
– RonnyNov 27 '12 at 10:58

1

$\begingroup$@Ronny In this case you can introduce your own ParamPlotColFunc and ListPointPlColFunc options and map then inside your implementation to the correct function.$\endgroup$
– halirutan♦Nov 28 '12 at 9:06

$\begingroup$That is of course the good way to do it, the code in the comment above was just to illustrate how to exclude some Options. In a white list type Options limitation the best way is yours.$\endgroup$
– RonnyNov 28 '12 at 9:57

$\begingroup$As an answer to the extended version: Now, where i see, that it is quite complicated to get an automated way, maybe even @halirutan s way to introduce an own set of parameters that are passed down, might be a good idea to avoid too much work for the automated way.$\endgroup$
– RonnyNov 28 '12 at 10:23

$\begingroup$System`ConvertersDump`exportOptions seem a good function. But don't work v12.0 anymore...$\endgroup$
– yodeMay 17 '19 at 15:31

Mathematica is a registered trademark of Wolfram Research, Inc. While the mark is used herein with the limited permission of Wolfram Research, Stack Exchange and this site disclaim all affiliation therewith.