30
votes
Accepted
22
votes
Accepted
Better way to sort course grades
This is a great use for the Association data structure, which makes so many tasks in Mathematica that much more pleasant.
First, we can just write out a ranking ...
21
votes
Accepted
18
votes
16
votes
Accepted
Histogram with Error bars
For the case where the height function is "Count", we can use the formula from the linked page in a custom ChartElementFunction ...
15
votes
Accepted
How to plot paired smooth histogram/distribution plots?
Here is something using a custom ChartElementFunction
...
15
votes
How to create Gantt charts
You may use TimelinePlot with the PlotStyle option.
For a project with schedule of start ...
15
votes
Accepted
Varying the size of dots in a plot according to information contained in list
You can use several approaches:
BubbleChart:
bcdata = Join[xy, List /@ pointsize, 2];
BubbleChart[bcdata]
See the options <...
15
votes
14
votes
Accepted
Update: Combining DistributionChart and BoxWhiskerChart
Final Update: Adding Callouts to special points
...
12
votes
Accepted
Waterfall Stacked BarChart
How about this?
yData = {10, 7, 4, 2, -5, -2, 3};
BarChart[yData, ChartLayout -> "Stepped"]
12
votes
Accepted
How does BoxWhiskerChart detect outliers?
iqrc = "IQRCoefficient" /. ChartElementData["BoxWhisker", "Options"];
1.5
...
11
votes
How to create a bar chart from a list of heights *and* bin delimiter positions?
You can already achieve this using Histogram. No need to fuss with ListPlot.
Use these forms for the second and third arguments ...
11
votes
How can I make a list plot with bars?
BarChart
Although OP says "I don't want a BarChart", the requirements of list plot with drop down columns/bars (overlapping bars/columns) can be achieved using ...
11
votes
Bar chart scale in multi-chart visualisation
Histogram does not support a grouped ChartLayout. Hence the workaround using BarChart:
I'...
11
votes
Reproducing the xkcd "Self-Description" comic
Here is a slightly improved/updated version of the solution developed by Peter Frentrup and published at Jan 15, 2010 on the xkcd forum. The changes I have made are to put ...
Community wiki
11
votes
Accepted
11
votes
Better way to sort course grades
I had to deal with similar problems many times, and I usually do this with associations.
We start by defining an exhaustive list of grades in our desired order. I am not that familiar with the ...
11
votes
Accepted
Plot a point with two colors
data = Transpose@Range[{5, 5}];
You can create custom PlotMarkers with the desired shape:
...
11
votes
Accepted
11
votes
How to remove double ticks in bar charts and remove/ extend space between bars?
Trawling through the documentation of BarChart
...
10
votes
Accepted
10
votes
Accepted
PieExploded in newer versions
The dynamic variables controlling the popout state of each segment are initialised to False in the DynamicModule container. If ...
10
votes
Plot PieChart as a line (or as a stacked BarChart)
RectangleChart[Callout[{#2, 1}, #]] & @@@ diversityCoearse,
ChartStyle -> 97, AspectRatio -> 1/2, BarSpacing->{0,0}, Axes -> {True, False}]
...
10
votes
Accepted
How to create a graphics like presented on the mathematica website as part of the latest features of Mathematica 11
You could use Graphics and built it up yourself. One way to start may be:
...
10
votes
Accepted
Custom color for fence, whisker and outliers in BoxWhiskerChart
Use a custom ChartElementFunction and pass the color information as metadata using Thread[data->col] as the first argument in ...
10
votes
How does BoxWhiskerChart detect outliers?
It is actually in the help documentation as the last item. Outliers are 1.5 InterQuartileRanges (IQR) away from the nearest quartile and Far Outliers are 3 IQR distant.
10
votes
Accepted
How can I plot my financial indicator below a trading chart (produced by TradingChart) with the same x-axis?
It appears you can define your own indicators to be used with TradingChart (this doesn't seem to be documented though):
...
10
votes
BoxWhiskerChart - how to show Quartile and other values
SeedRandom[1];
data = RandomVariate[NormalDistribution[], {2, 30}];
bwc = BoxWhiskerChart[data];
You can extract the tooltip labels from ...
10
votes
Accepted
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
charts × 437plotting × 183
graphics × 65
labeling × 61
histograms × 42
legending × 31
color × 24
probability-or-statistics × 22
visualization × 20
finance × 19
code-request × 15
graphics3d × 13
list-manipulation × 12
manipulate × 12
graphs-and-networks × 12
style × 12
ticks × 10
plot-themes × 10
bugs × 9
dataset × 9
data × 8
output-formatting × 7
distributions × 7
code-review × 7
options × 5