Questions tagged [options]

Questions dealing with optional named arguments of Mathematica functions.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 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,470
2 votes
0 answers
33 views

Option management with helper functions

I found this example in the documentation of OptionValue Why does f need to be an argument of ...
Crack-Hu's user avatar
4 votes
2 answers
167 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
47 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
  • 19.6k
1 vote
0 answers
33 views

Separate definition of custom options and passed options in function definition

Why do these codes do not work? ...
azerbajdzan's user avatar
  • 9,933
0 votes
0 answers
36 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,267
4 votes
2 answers
51 views

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

Consider this function. ...
Ted Ersek's user avatar
  • 884
1 vote
0 answers
43 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,047
1 vote
1 answer
64 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
  • 17k
1 vote
1 answer
36 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
98 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,047
1 vote
0 answers
75 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
65 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,774
0 votes
0 answers
28 views

How can I disable the mouseover behavior of AnimatedImage objects?

The otherwise very convenient function AnimatedImage displays a "pause" icon when you mouse over its output. Is there an option or trick to disable this? I see that in the documentation it ...
Glenn Welch's user avatar
3 votes
1 answer
126 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,197
0 votes
0 answers
67 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
193 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,407
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,114
1 vote
2 answers
171 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,407
0 votes
0 answers
90 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,407
1 vote
1 answer
114 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,407
1 vote
0 answers
57 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
115 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,407
0 votes
0 answers
52 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
  • 636
2 votes
0 answers
82 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,144
4 votes
1 answer
167 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,047
1 vote
2 answers
77 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,407
3 votes
1 answer
63 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
  • 9,933
1 vote
1 answer
127 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
3 votes
3 answers
186 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,047
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,047
2 votes
1 answer
107 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,047
2 votes
1 answer
56 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,407
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
96 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
  • 3,968
1 vote
1 answer
58 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
  • 883
8 votes
4 answers
267 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
427 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,411
4 votes
1 answer
95 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
  • 557
3 votes
2 answers
155 views

Disable image resize

Below is a screenshot of mathematica help : As you see, if I click the image, orange colored frame appears, and we can control its size. Can we make it impossible to resize an image ? Probably by ...
imida k's user avatar
  • 4,047
2 votes
2 answers
129 views

Plot AspectRatio basic question

When Plotting (using the command Plot), AspectRatio->Automatic means : The explanation of ...
imida k's user avatar
  • 4,047
4 votes
1 answer
136 views

ImageDimensions[Plot[something]] : where does ratio 1.666... come from

From my knowledge, ImageSize is an option that adjust the width of an image. ...
imida k's user avatar
  • 4,047
3 votes
0 answers
81 views

Need to confirm bug in Dataset options before I submit report to wolfram

I need to know if I need to submit a bug report. I finally got my HeaderSize the way I want it but I had fudge it. It gives the correct widths but does this look ...
Jules Manson's user avatar
  • 2,407
1 vote
1 answer
84 views

Ensure that Options for built-in symbols are the original defaults

I often create symbols (no args) or functions (with args) in which common options (and styles) are set in body and unique opts within args for managing multiple calls to built-in functions. these spit ...
Jules Manson's user avatar
  • 2,407
10 votes
1 answer
116 views

How to list all possible string arguments of a specific function?

For example, to learn the function Alphabet, we can read its document. But it's rather ambiguous, like "Some languages have extra properties". How to find ...
Kodiak Grizzly's user avatar
1 vote
0 answers
83 views

How to DeleteDuplicates from a list of Rules having set to different values whereby we wish to drop the last occurrence?

About This Function This will eventually set default values for Options based on the end users preferences so that no OptionsPattern need ever be set. The symbol<...
Jules Manson's user avatar
  • 2,407
2 votes
1 answer
200 views

A question related to the usage of LegendLayout -> {"Row", 1}

I saw this piece of code from an answer by @Syed here. ...
emnha's user avatar
  • 2,411
6 votes
2 answers
306 views

RegionPlot is slow to plot a simple region

I start out with 5x5 matrix gCorrMatrix[g] depending on a parameter $g$ and an unknown $W_2$ ...
occamsrazor's user avatar
2 votes
2 answers
208 views

Why does this PhaseRange not work?

Any idea why this PhaseRange does not work? BodePlot[-(1/(s + 1000)), PlotLayout -> "Phase", PhaseRange -> {0, 2 \[Pi]}]
hana's user avatar
  • 2,688

1
2 3 4 5
13