Tag Info

New answers tagged

6

Here is a partial answer. I believe for Method -> {opts}, opts may be any of the following, and they will have whatever effect they have: Internal`InequalitySolverOptions[] Internal`ReduceOptions[] Internal`NSolveOptions[] (* {"ARSDecision" -> False, "BrownProjection" -> True, "CAD" -> True, "CADAlgebraicCoefficients" -> True, ...


3

The options (including internal defaults) for Plot etc. override the options set for Graphics. For example: SetOptions[Graphics, ImageSize -> Tiny]; Plot[Sinc[x], {x, 0, 5}] If you wish to use the Graphics setting try Inherited: Plot[Sinc[x], {x, 0, 5}, ImageSize -> Inherited] I want to set ImageSize->Tiny once, somewhere ... If ...


1

How about this? Expanding on John McGee's answer: Manipulate[ Plot[{Log[x], x/E} , {x, E - a, E + a} , PlotRange -> All , ImageSize -> 400 , ImagePadding -> {{50, 10}, {50, 10}}] , {a, E, E/100, -(E/100)} ] The ImagePadding is necessary in order to get rid of the annoying jitter that occurs when the axes labels change. PlotRange -> ...


4

Could you use PlotRange->{{e-w,1-h},{e+w,1+h}} Where w,h are the 1/2 width and 1/2 height of the zoom box?


17

After some spelunking it appears I have an answer and solution: the behavior is as intended, and it is controlled by a Method option "AllowMicroRanges". ListLinePlot[dat, PlotRange -> Full, Method -> {"AllowMicroRanges" -> #} ] & /@ {True, False} It seems this option may also be given directly, outside of Method, but if you wish to ...


2

I believe I have found something that may solve your problem. I discovered today: Data`UnorderedAssociation This is an undocumented function that appears to work like Association at least in a limited set of operations, yet it puts its keys into a consistent order: Data`UnorderedAssociation /@ Permutations@{"d" -> 1, "b" -> 2, "a" -> 3, "c" ...


3

You need to add an Evaluate as Plot has the attribute HoldAll. foo[f_, opts : OptionsPattern[Plot]] := Plot[f[x], Evaluate@Flatten@{x, First@OptionValue[PlotRange]}, opts] foo[# &, PlotRange -> {{-3, 3}, Automatic}]


6

You can use a conditional ColorFunction within DiscretePlot to achieve what I think you want. In that case, it is important to prevent Mathematica from scaling of the values passed to the ColorFunction using ColorFunctionScaling -> False. The conditional expression used as a ColorFunction is given the $(x,y)$ values to be plotted as a Sequence. We check ...



Top 50 recent answers are included