Linked Questions

69 votes
10 answers
3k views

Injecting a sequence of expressions into a held expression

Consider the following toy example: Hold[{1, 2, x}] /. x -> Sequence[3, 4] It will give Hold[{1, 2, Sequence[3, 4]}] ...
Szabolcs's user avatar
  • 235k
14 votes
7 answers
915 views

How to properly inject iterators into table? [duplicate]

Goofing off on a prior question, I was fiddling with other methods, which led me to the need to inject a constructed set of iterators into a table construct. Now, ...
ciao's user avatar
  • 25.8k
28 votes
4 answers
1k views

SetOptions locally?

Is there a way to SetOptions locally? For example, I have a Module and inside it I am doing a lot of ...
a06e's user avatar
  • 11.4k
10 votes
4 answers
1k views

Efficient way to utilise Parallel features to make use of many cores

Let's say I have 100 cores/kernels as my disposal and want to compute a function of two variables f[x,y] over {x,1,10}, ...
fpghost's user avatar
  • 2,125
4 votes
4 answers
332 views

Plot range of a 2-dimensional function as a function depending on one variable

I want to plot a function of 2 variables x and y, for discrete values of y, like: ...
Santiago's user avatar
  • 1,201
32 votes
3 answers
2k views

Consistent Plot Styles across multiple MMA files and data sets

I am starting to write a thesis for which I want to use MMA for all my plotting needs, mostly because a lot of the basic analysis has been done there. To ensure that I am applying styles consistently (...
tkott's user avatar
  • 4,949
19 votes
3 answers
1k views

Custom functions by delegating options in a specific way and using core functions

I'd like to create a custom function that does essentially the same as a core function of mathematica but uses different default settings. Example: I want a Plot function that uses Mathematica's core ...
dotcs's user avatar
  • 587
10 votes
3 answers
566 views

Problem when defining variable in Mathematica

I'm trying to run this: domain := {n, 0, 10}; Plot[n, domain] but it doesn't work. Instead, it generates the message ...
user12079's user avatar
  • 203
6 votes
2 answers
733 views

Passing list of options to Plot

I'm looking for a way to create a variable that I can use to hold all of the graphics directives for, say, a plot command. For example, I have 8 plots with variations on the following: ...
Scott's user avatar
  • 217
8 votes
1 answer
22k views

Forcing unifom axis scaling on a list plot [duplicate]

I'm trying to draw a ListPlot where the x and y axis have the same scale. My data is ...
Marco83's user avatar
  • 213
5 votes
1 answer
231 views

Why is Evaluate[] in Plot[] not necessary in some cases?

after reading some related materials(Why do I have to put Evaluate[] here), in my understanding, BecauseAttributes[Plot] has ...
Aerterliusi's user avatar
4 votes
1 answer
222 views

Plotting function with unique symbols [closed]

I would like to plot a function which involves multiple symbols created using Unique. Consider the following simple example. ...
Markus Müller's user avatar
4 votes
1 answer
678 views

Reuse ParametricPlot3D plotting options [duplicate]

I create several ParametricPlot3D's that all should look the same: BoundaryStyle -> Thick, ...
u17's user avatar
  • 601
1 vote
1 answer
260 views

Is there a way to convert a string to a Table indicator? [closed]

I have a list like this: list = {"k1","k2"} I want to use the elements in the list as Table indicators: ...
Zihu Guo's user avatar
  • 299
2 votes
0 answers
45 views

Graphics options defined as a set [duplicate]

I need to use almost the same options for several graphics, and would like to simplify the code which is becoming pretty large. The example below should work, but it doesn't for a reason I don't see. ...
Cham's user avatar
  • 4,093