Hot answers tagged

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 ...
  • 112k
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: ...
  • 267k
24 votes

SetOptions locally?

Version 12.2 In version 12.2, use the new function WithCleanup[]: ...
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. <...
  • 27.3k
19 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 ...
  • 231k
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 ...
  • 267k
18 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 ...
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: ...
  • 267k
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 ...
  • 33.7k
16 votes
Accepted

"ParametricSensitivity" in ParametricNDSolve

The choices allowed for "ParametricSensitivity" can be seen from the following error message ...
  • 25.3k
16 votes

Is a list of all graph layouts available?

ResourceFunction["QueryCodeCompletion"]["GraphLayout","KernelSymbol","Graph","InOptionValuePosition"]
  • 25.3k
15 votes

OptionsPattern[] taken as a Replacement Rule

You must use opts : OptionsPattern[] and not opts_ : OptionsPattern[]. The : character has ...
  • 231k
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 ...
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: ...
  • 84.1k
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: ...
  • 267k
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 ...
  • 59.7k
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 ...
  • 14.9k
14 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 ...
14 votes
Accepted

Create new notebook at fixed size

If you don't want to modify MenuSetup.tr you can evaluate: ...
  • 135k
14 votes
Accepted

What is the fundamental difference between "PlotPoints" and "MaxRecursion"?

PlotPoints guarantees a number of points that will be plotted. MaxRecursion states the maximum recursion, which might not be ...
14 votes
Accepted

How to check the validity of an option value

Implementation This is indeed an important problem. It is usually best to have a separate function testing various options. Here is the solution I propose: a wrapper that would factor out the testing ...
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 ...
  • 267k
13 votes
Accepted

Programming scripts to create and modify stylesheets: problems with contexts

One has to be extremely careful with Cell options that are not released in System` context. It seems that your problem is caused ...
  • 135k
12 votes

Set the style of a cell

I don't know if any of them can be callled documented but I know three ways to do this: mentioned above: FrontEndToken way: ...
  • 135k
12 votes

Clean and handy Options management/filtering

Following your clarification this seems to be OK, though I would agree that a cleaner solution would be nice: ...
  • 267k
12 votes
Accepted

Confused by the opts : OptionsPattern[ ] pattern

Re 1: As documented in Operator Input Forms, colon represents two different operations: symb:expr Pattern[symb, expr] patt:expr Optional[patt, expr] If you ...
  • 13.9k
12 votes
Accepted

Creating Saveable->False notebooks

To whom it may concern, a workaround: ...
  • 135k
12 votes
Accepted

What is Hessian?

The Mathematica documentation for FindMaxValue includes the example ...
  • 15.8k
12 votes

SetOptions locally?

Just define your options as sequence held in a local variable. ...
  • 107k

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