Skip to main content

Questions tagged [options]

Questions dealing with optional named arguments of Mathematica functions.

Filter by
Sorted by
Tagged with
0 votes
0 answers
31 views

Apply options to many controllers

I have 5-7 controllers in Manipulation. Names and ranges are different, but some options like ...
lesobrod's user avatar
  • 1,894
4 votes
1 answer
93 views

SetOptions does not work for ContourStyle of ContourPlot3D?

$Version 14.0.0 for Mac OS X ARM (64-bit) (December 13, 2023) This seems to be similar to Global LabelStyle option does not work with SetOptions and SetOptions for ...
Lacia's user avatar
  • 2,557
0 votes
2 answers
108 views

Proper Way to Clear all 'Option' Variables for a Function?

I've poked around and searched a bit, but thus far have not been able to find anything that solves the following problem: ...
anonmous's user avatar
  • 121
1 vote
0 answers
57 views

Mathematica 13.1 - New Cell Options

I have been using Mathematica for many years now and never encountered anything like that. My version is 13.1. In one of my notebooks, I must have clicked some shortcut by mistake, and now the new ...
Omer Amit's user avatar
1 vote
0 answers
39 views

Why does SetOptions[Tree,ImageSize->Tiny] fail for Tree[]

It works for Plot but not for Tree ...
Tapiocaweasel's user avatar
3 votes
2 answers
65 views

Passing options (both default and input) to sub-function

I have a function with Options, and I want to pass the Options to a subfunctions, including both Options with default values and Options with input values. For example, I want to pass the Options of <...
Li Xiang's user avatar
2 votes
1 answer
74 views

How do I change my Input/Output labels back to the default?

My notebooks have a non-standard In/Out labels. They look like this: I changed label style so long ago, I can't remember how I did it. I've tried changing the CellLabelTemplate option, but that didn'...
Craig Carter's user avatar
  • 4,665
11 votes
2 answers
230 views

Which functions use a given option?

I occasionally discover Options which look like they might be useful, if only I knew which functions used that option. Is there a resource that lists all the functions which use a given option? What ...
Tapiocaweasel's user avatar
4 votes
2 answers
95 views

How can I specify a pattern for OptionsPattern

I cannot find the method how to apply some pattern specification to the values of options in a function. For example, it is necessary to define the power (exponentiation) with both positive base and ...
Konstantin's user avatar
4 votes
1 answer
79 views

Where can I find the documentation on DropLine?

I watched the video "New in Version 14" and I think I remember seeing something I think was called "DropLine" which was illustrated as an option in a 2D graphic that inserted ...
Rogo's user avatar
  • 940
1 vote
1 answer
176 views

Put tiny, hidden information on notebook

What is the standard method for inserting tiny, hidden information on notebooks (.nb files) ? From now on, I am planning to insert small, hidden information on every new notebook. And also for some ...
imida k's user avatar
  • 4,325
0 votes
0 answers
53 views

Open multiple instances(=windows) of same .nb? [duplicate]

Is it possible to open multiple instances of the same .nb (on local disk)? First, open c:\test1\test1.nb. After that, can you open another instance(=window) of <...
imida k's user avatar
  • 4,325
0 votes
0 answers
29 views

Strange behaviour when adding Options to Protected symbols

I want to use the TensorProduct function to work for some of my custom expressions with head FusionRing and I want it to be able ...
Gert's user avatar
  • 1,620
4 votes
2 answers
184 views

Modify the color scale in ColorFunction

I'm trying to get the following intensity map with the same style and colors But the closest I got was using SolarColors in Mathematica ...
Soliton-104's user avatar
0 votes
0 answers
50 views

Passing an unevaluated test

I want to write a function (in a package) that takes a boolean test as an option. Here's a toy example to illustrate what I have in mind: ...
Chris K's user avatar
  • 20.3k
1 vote
0 answers
36 views

Separate definition of custom options and passed options in function definition

Why do these codes do not work? ...
azerbajdzan's user avatar
  • 20.9k
1 vote
0 answers
47 views

GraphicsBoxOptions no longer working in Mathematica 13.3

Previously, I used GraphicsBoxOptions to set BaseStyles for my notebook. It is no longer working in Mathematica 13.3. What is ...
Everett You's user avatar
  • 2,307
4 votes
2 answers
61 views

How to post message about invalid options and return unevaluated input?

Consider this function. ...
Ted Ersek's user avatar
  • 969
1 vote
0 answers
50 views

Graphics3D with projected/flat eye view? [closed]

Following image can be perceived as a cube (a regular hexagon with 3 internal line segments) : But in mathematica, it is not possible to make such shape with rotation. Examples of some close state of ...
imida k's user avatar
  • 4,325
1 vote
1 answer
70 views

Can not get OptionValue with SetDelayed variable

ClearAll[foo1]; foo1[OptionsPattern[]] := Hold[OptionValue[""]][[1, 1]] foo1[] gives function name foo1 But ...
matheorem's user avatar
  • 17.3k
1 vote
1 answer
41 views

Permanently changing default output style

I have read through this discussion several times: Keeping Quotation Marks in Output Unfortunately, the accepted answer here only works once, at the notebook level. I'd like to permanently change this ...
Glenn Welch's user avatar
4 votes
1 answer
112 views

Graphics - nice variant of ImageSize (pixels per GraphicsUnitLength)

On my MMA, I apply the options SetOptions[$FrontEnd, GraphicsBoxOptions -> {BaseStyle -> Magnification -> 72/120}] Then I can assure the output ...
imida k's user avatar
  • 4,325
1 vote
0 answers
89 views

How to restore LightGray Background to initialization cells?

I am running Mathematica 13.2.1 on a new MacBook Pro M2 with Ventura 13.2.1. I have done something that causes any initialization cells that I create or view to no longer have a LightGray background. ...
Spencer Rugaber's user avatar
1 vote
1 answer
113 views

Resetting Default Stylesheet/Options Inspector

While trying to learn about the use of Stylesheets and use of the Options Inspector, I have managed via misguided bravado or accident to change the global options for the default stylesheet in a way ...
Stuart Poss's user avatar
  • 1,943
3 votes
1 answer
151 views

How to extract the AspectRatio of a plot? [closed]

How do I extract the AspectRatio from a plot? (For example for the PlotRange, I can use ...
Kvothe's user avatar
  • 4,651
0 votes
0 answers
87 views

Do the options LegendFunction->"Frame" and PointSize work?

In the Mma versions up to 12.2 the function LegendFunction->"Frame" worked. Now (version 13.2, Win.10) it seems not to work: ...
Alexei Boulbitch's user avatar
2 votes
2 answers
205 views

ChangeCellStyle function works in one direction but not in reverse

This post is a continuation of an earlier Question, How to programmatically change CellStyle of all Cells from "Input" to "Code"? but with a ...
Jules Manson's user avatar
  • 2,467
6 votes
1 answer
172 views

Listing the supported formats of BarcodeImage

BarcodeImage["string",format] generates a barcode image given a string and barcode format. The supported formats can be read off from its documentation. ...
lineage's user avatar
  • 1,164
1 vote
2 answers
182 views

How to extract arguments of color spaces and determine brightness of said colors?

The objective is to produce an automated theme with contrasting colors for EvaluationNotebook FontColor and ...
Jules Manson's user avatar
  • 2,467
0 votes
0 answers
91 views

Map-ed programmatic Style-s (based on user-input) are not evaluating. Scoping constructs are suspected

The top function manages several sub-functions which set visual properties over a list of Options. Inside stylerules the ...
Jules Manson's user avatar
  • 2,467
1 vote
1 answer
124 views

Need a few built-in Symbols (functions) whose Options are a mix of Rule-s and DelayedRule-s [closed]

This is for examples in documentation I'm writing for a ResourceFunction["PrettyOptions"] (look for it soon) that is close to completion. Asking for most ...
Jules Manson's user avatar
  • 2,467
1 vote
0 answers
63 views

Can I export the Option Inspector settings?

I've customized my options via the option inspector but I doubt I'd remember all those obtuse settings. Is there a way to export or save them if my computer dies or I upgrade?
cybervigilante's user avatar
2 votes
2 answers
116 views

Write an expression that queries all of MMA to find the top M Symbols with the most Options or M Symbols having N Options?

I apologize, but I'm way over my pay-grade on this one, so I don't have any code to share that needs correcting. That is because I really don't know how to start this. I feel like this has a very easy ...
Jules Manson's user avatar
  • 2,467
0 votes
0 answers
69 views

Changing the default fonts, colours and padding of plots in Mathematica 13

Default legend font After a while of playing around with the option inspector, I've managed to change the default font and colour of the axis labels and tick labels of a 2D plot, as well as the ...
Rain's user avatar
  • 656
3 votes
0 answers
141 views

Impossible to change any option in option inspector

I would like to enable AutoSave in the options. However, all the options are grayed in Mathematica (see below) and I cannot change anything. The software has been launched as administrator. How can I ...
StarBucK's user avatar
  • 2,174
4 votes
1 answer
191 views

Problems when Manipulating viewpoint of Graphics3D[cube]

I wanted to Manipulate the ViewPoint of Grphics3D[Cube[]]. My codes are ...
imida k's user avatar
  • 4,325
1 vote
2 answers
79 views

A strange error occurs when using First, Last, and Take to pick out list elements for dynamically styling a button

The top function setstyles is the only one we need to focus on. However, the four functions below it are needed for this to work. These validate up to 4 properties ...
Jules Manson's user avatar
  • 2,467
3 votes
1 answer
69 views

Converting ViewPoint and ViewCenter to ViewVector

In the documentation about ViewPoint in the section "Properties & Relations" we can read: "Convert ViewPoint to ViewVector by multiplying the length and pointing the center:" ...
azerbajdzan's user avatar
  • 20.9k
1 vote
1 answer
144 views

Updating a built-in function in Mathematica

I am using Mathematica 10.2 and would like to know how to update a built-in function. For example, I am trying to utilise the ScalingFunctions and ...
Huizar Wilson's user avatar
4 votes
4 answers
253 views

Quit the loop if encounter error message

First define length-component error (personal term) : This is an error when we want to get n-th component of a list if n is bigger then the length of the list. For example, ...
imida k's user avatar
  • 4,325
3 votes
1 answer
66 views

How to set minimal allowed size for a graphical element?

Starting from version 10.3 there is a documented way to specify a maximum allowed size for a graphical element via UpTo: ...
Alexey Popkov's user avatar
0 votes
0 answers
70 views

Get range of a Graphics object [duplicate]

Let g1 = Graphics[{Orange, Disk[{0, 0}, {3, 4}]}] It is clear that the g1 can be contained in a rectangular region whose left-...
imida k's user avatar
  • 4,325
2 votes
1 answer
125 views

For Graphics, ImageDimensions yields slightly different value

I use Mathematica version 12.2, Windows 10. Graphics[{Red, Rectangle[{0, 0}, {200, 300}]}, ImageSize -> 200] // ImageDimensions {200, 296} I think the output ...
imida k's user avatar
  • 4,325
2 votes
1 answer
66 views

What properties make a valid CellID?

The documentation for CellID only mentions that it will be a number. But what kind of number? Can it be a real number with a decimal? How about a negative number?
Jules Manson's user avatar
  • 2,467
1 vote
0 answers
56 views

Strange CandlestickChart EventLabels Behavior When Using Modified Data

Edit: In attempting to showcase a simplified version of the issue, it seems instead I showcased a syntax error and didn't capture the correct issue. The code below showcases the issue: ...
Nate's user avatar
  • 725
4 votes
0 answers
114 views

NMinimize/NMaximize: How to specify additional options to the "PostProcess"->FindMinimum option

I would like to pass FindMinimum Options to the PostProcess Option of NMinimize. Here is minimal working example of using NMinimize from the documentation at (see tutorial/...
Craig Carter's user avatar
  • 4,665
2 votes
1 answer
63 views

Using Through function with vectors

I have the vectors defined as follows: v1={x1,y1,z1}; v2={x2,y2,z2}; v12=v2-v1; v21=v1-v2; I am passing an integer function for iteration purpose as follows: ...
Aschoolar's user avatar
  • 893
8 votes
4 answers
308 views

How to determine the current width of the output cell area?

When answering this question, I suddenly realized that it is surprisingly difficult to determine the current width of the output cell contents. I tried to employ the ...
Alexey Popkov's user avatar
15 votes
2 answers
443 views

Is a list of all graph layouts available?

Is a list of all graph layouts available? For example I want to check all the layouts at once for a specific graph so I'll map this over the list. Of course you can just type the list yourself but ...
emnha's user avatar
  • 2,111
4 votes
1 answer
101 views

OptionValue not inserting correct option

I am using OptionsPattern and OptionValue to define some switches for my custom function. Here is a minimal example: ...
shanedrum's user avatar
  • 587

1
2 3 4 5
13