Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
7
votes
Accepted
Does Callout work with BubbleChart?
It does now in v11.1. The automatic position for Callout will try to put labels inside the bubble if possible, otherwise find a position that doesn't overlap.
1
vote
How to interpret DateListPlot FrameTicks in Mathematica 11
Ticks function is fed with Sequence[min, max]. So,
ticksfun =
Charting`FindScaledTicks[(Charting`getDateTicks[
Automatic, {Automatic}, (DateList /@ {##1} &)[##1], None,
5, {{0.0125, 0}, {0. …
12
votes
Why are PlotLegends not combined with Plots?
Legends can be put inside the Graphics, for example:
Plot[{Sin[x], Cos[x]}, {x, 0, 5},
PlotLegends -> Placed[LineLegend["Expressions"], {Right, Top}]]
6
votes
TimelinePlot - Handling dates prior to Year Zero
It may not be able to help since it has been a while, but the problem was the string format of dates:
In[69]:= DateList["-300"]
Out[69]= {300, 1, 1, 0, 0, 0.}
In[70]:= DateList[{-300}]
Out[70]= {-300 …
17
votes
Setting the default font for PlotLegends
There is LabelStyle option for these new legends.
For example:
Plot[{Sin[x], Cos[x]}, {x, 0, 2 \[Pi]},
PlotLegends ->
LineLegend["Expressions",
LabelStyle -> {FontFamily -> "Helvetica"}]]
…
3
votes
How can I save both the plot and the legend together?
Or you can use the full form position specification with Placed to position legend "inside" the graph and use Legended to put any additional legends.
Legended[Plot[{Expr1, Expr2, Expr3}, {p, 0, 1},
…
6
votes
Legend placement explanation
Placement in Placed is {{x_pos, y_pos}, {x_obj_pos, y_obj_pos}}, where x_pos and y_pos are scaled(from 0 to 1) position referring to the plot, and x_obj_pos and y_obj_pos are scaled position referring …
2
votes
adjust the alignment of different legends
LegendMarkerSize is the key as Virgil said. Besides that, the legend system is smart enough to combine legends if they are placed at the same position. So, instead of specifying one legend at {0.8, 0. …
1
vote
How to set point labels in a scatter plot?
The third argument of Labeled is the control of positions, as in format {object_pos, label_pos}. label_pos will be {0, 0} because you want the left-bottom corner of the label to be placed at the right …
3
votes
Accepted
Rotating Label inside ListLinePlot
In Version 11.0.1, Labeled can be used in the dataset level.
data = Table[{x, x^2}, {x, 0, 10, 0.1}];
ListLinePlot[Labeled[data, Style[Rotate[x^2, 40 Degree], Bold, 14], {6, 42}]]
The third argumen …
5
votes
How to find and label dominant peaks in a plot
Take a snapshot of your Manipulate as an example:
{instrument = "Flute" -> "Flute", pitch = "A", fs = 44100};
data = AudioData[Audio[Sound[SoundNote[pitch, {0, 2}, instrument]],
SampleRate -> fs …
4
votes
Accepted
How to plot a legend according to a given scale, separately?
Not sure if this is what you meant, but
xmin = 0.3; xmax = 15;
f[x_] := Log[x/xmin]/Log[x/xmax]
minmax = {f[xmin], f[xmax - 10^-10]};
cf = Blend[{Red, Green}, Rescale[f[#], minmax]] &;
then
BarLeg …
10
votes
Make legend same height as plot
Hope this workaround helps.
Use Placed to position legends more precisely:
DensityPlot[Sin[x] Sin[y], {x, -4, 4}, {y, -3, 3},
PlotLegends ->
Placed[BarLegend[Automatic, LegendMarkerSize -> 280] …
4
votes
Accepted
Dynamic legends involving show
Will this work?
DynamicModule[{x1 = True, x2 = True},
randData = RandomVariate[NormalDistribution[], 10^3];
estDists =
EstimatedDistribution[randData, #] & /@ {NormalDistribution[mu,
sigm …
1
vote
Customizing the order of appearance of legends in PlotLegends
LegendLayout -> {"Column",2} does exactly what you wanted.
Plot[{(1 - bet) 1/(2 Sqrt[bet]), Sqrt[bet],
bet^(1/4), (1 - bet) 1/(4 bet^(3/4))}, {bet, 0, 1},
PlotLegends ->
Placed[LineLegend[{"M …