Hot answers tagged

46 votes
Accepted

How to extract a list of available Method-s

I use this function ...
user avatar
  • 109k
28 votes
Accepted

Inline documentation of "Properties"

Yes, it is possible: The idea is to look at the underlying cell expressions in the documentation for those string property tables. As I said already in my comment above, basically we have two ...
user avatar
  • 111k
27 votes
Accepted

Prompt a set of possible options

Thanks for asking this question; I might not have discovered this customizable area without it. The auto-completion option values are automatically loaded on Front End start from: ...
user avatar
  • 264k
24 votes

SetOptions locally?

Version 12.2 In version 12.2, use the new function WithCleanup[]: ...
21 votes
Accepted

How do I override options with my own defaults?

Here is what I do in such cases ([edit from 01/10/2020 - apparently, this technique has been exposed on this site earlier, at least partially, in this nice answer by Mr.Wizard - which I definitely ...
user avatar
19 votes

Where is the old option TraceInternal->True?

Let me first answer your second question, since I can only guess about the main question: I also observed that the syntax colouring (version 10, windows 7) suggests that Trace can be used with only ...
user avatar
  • 111k
19 votes
Accepted

Where is the old option TraceInternal->True?

Normally I like to use On and Off for this kind of tracing as it is easy to set up without modifying any symbols. However, it ...
user avatar
  • 67k
19 votes
Accepted

Creating a simple Dock Cell that Fades In when Cursor Hover Over It

Edit: Fading overlay window In order to get a top dock element with real transparency, one can create a window that overlays the current notebook window and adjusts its position together with it. <...
user avatar
  • 27.1k
18 votes
Accepted

New behavior of PlotRange in Mathematica 10

After some spelunking it appears I have an answer and solution: the behavior is as intended, and it is controlled by a Method option ...
user avatar
  • 264k
18 votes
Accepted

Inheriting Options?

Let us assume that you are designing a function which can take its own unique options, but also shares option names with Plot. What is the best way to implement ...
user avatar
  • 225k
17 votes
Accepted

What does the AspectRatio option actually do?

Padding Without padding of any kind the over-all aspect ratio and element (primitive) aspect ratio are the same and as specified: ...
user avatar
  • 264k
17 votes

Writing functions with "Method" options

Introduction What are good (robust?, simple?, efficient?) patterns for doing this kind of code-switching? This answer outlines a development strategy that can produce robust and extensible ...
user avatar
17 votes

SetOptions locally?

I have used several methods, including the ones in the other answers. I have found that the simplest method is Internal`InheritedBlock as it allows for temporary ...
user avatar
  • 33.3k
16 votes

How to change plot style or other options after it was created

As Mr.Wizard indicated, you can also reconstruct the plot using the data. Here is an example: ...
user avatar
16 votes
Accepted

Method options for DensityPlot and ContourPlot

As far as I know there is no documented list of Method options for ContourPlot and ...
user avatar
  • 83.4k
16 votes
Accepted

"ParametricSensitivity" in ParametricNDSolve

The choices allowed for "ParametricSensitivity" can be seen from the following error message ...
user avatar
  • 25.1k
15 votes
Accepted

Make Plot look like Bloomberg terminal

Thanks to this answer for the gradient filling you can do the following: ...
user avatar
  • 8,417
15 votes
Accepted

How to change NeuralNetwork options?

As already mentioned, options are accessed via: Method -> {"NeuralNetwork", "L2Regularization" -> 0.12, "HiddenLayers" -> {4, 3, 3}} To manually set ...
user avatar
  • 3,469
15 votes

OptionsPattern[] taken as a Replacement Rule

You must use opts : OptionsPattern[] and not opts_ : OptionsPattern[]. The : character has ...
user avatar
  • 225k
15 votes
Accepted

Bulletproofing packages against SetOptions of built-ins

The approach This seems to be a good case for applying some run-time metaprogramming / introspection. The idea would be to patch the already constructed definitions after they have been created, at ...
user avatar
14 votes
Accepted

Triangle that collapse cells

Several ways to make the opener icon for cell groups visible: You can set the ShowGroupOpener to True for the current notebook ...
user avatar
  • 349k
14 votes

How to change NeuralNetwork options?

At least Method -> {"NeuralNetwork", "L2Regularization" -> 0.01, "HiddenLayers" -> {4, 3, 3}} seems to work. ...
user avatar
14 votes
Accepted

Is there a good reason for the removal of this FrameTicks syntax?

I have no idea if the old syntax was removed for a reason, but normal behaviour can be returned with the following workaround: ...
user avatar
  • 83.4k
14 votes
Accepted

How can I make FilledCurve smoother?

Fortunately there is a solution but it appears to be undocumented and takes a bit of guess work. The magic is: ...
user avatar
  • 264k
14 votes

Mathematica 10, Show, and PlotRange

When different plots use conflicting options, Show uses the first one listed. So, here it is using the PlotRange of the first ...
user avatar
  • 58.4k
14 votes
Accepted

SyntaxInformation: take allowed options from multiple symbols – possible?

SyntaxInformation accepts undocumented "OptionNames" property. Using it we can explicitly define list of option names that will ...
user avatar
  • 14.7k
14 votes
Accepted

Create new notebook at fixed size

If you don't want to modify MenuSetup.tr you can evaluate: ...
user avatar
  • 132k
13 votes
Accepted

Front End options

Option hierarchy Quoting John Fultz: Options work on an inheritance model. ... It all starts someplace. That would be the hard-coded option values in the front end C code. The root of the ...
user avatar
  • 264k
13 votes
Accepted

Methods Available for Derivative Pricing in Mathematica?

I also use Mathematica for calculating derivatives prices. As I understand FinancialDerivative[(*option params*),"GridSize"->{}] is equivalent to Finite ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible