Questions tagged [charts]
Questions about building charts in Mathematica. This includes generating the graphics, prettifying them, and using methods to extract their data.
83
questions
21
votes
4
answers
8k
views
ListPlot with plotmarkers determined by point
I am trying to build on a simple example here:
td = Prime[Range[25]]
dsk = Graphics[{Blue, Disk[]}]
ListPlot[td, PlotMarkers -> {dsk, 0.7}]
How can I make ...
27
votes
6
answers
3k
views
Understanding Pie Chart Annulus generation and alternate style using Disk[]
Background
I have been working with a set of data for some time now and I recently decided to change the format. The data is a tree-styled listing of hierarchical names and positions.
(* Names ...
7
votes
3
answers
1k
views
Spacing the elements in a bar chart with error bars
In How to | Add Error Bars to Charts and Plots in the Mathematica documentation, a function ErrorBar is given:
...
6
votes
4
answers
925
views
How to change texture of chart bar?
Is there anyone who know how to make diagonal lines inside the chart bar like the below picture?
19
votes
6
answers
8k
views
X-Y scatter plot with coloring dependent on Z value [duplicate]
I have an array of $(x,y,z)$ triples (array dimensions: N x 3), from which I can make a 2D scatterplot of $(x,y)$ values:
...
12
votes
3
answers
633
views
DistributionChart range extends beyond the data itself
I have a larger data set and want to display it using DistributionChart.
...
5
votes
3
answers
4k
views
How can I imitate the style of a certain 3D bar chart?
I would like to get a 3D visualization of a given matrix.
Here is a figure which may come from Mathematica. I want to plot something like it. When I use ListPlot3D ...
14
votes
1
answer
2k
views
Styling individual bars in a BarChart with grouped data
Consider the following:
...
12
votes
3
answers
894
views
How can I highlight a moving bar in an animation of a bar chart?
I wrote the following code, but I don't know how to highlight the moving bar.
...
12
votes
3
answers
6k
views
PlotRange adjustments with BarChart
I'm working on making some BarCharts, however, some of my data is contained within a small range so I want the plot to start above 0 and cut-off the bars below that,...
12
votes
2
answers
566
views
How can I plot my financial indicator below a trading chart (produced by TradingChart) with the same x-axis?
Since this question was not answered, I would like to ask again with some additional information. I have a trading chart saved as chart1 as follows.
...
10
votes
2
answers
604
views
Histogram3D frame ticks with bin text labels rendered in x-y plane?
Is it possible in Histogram3D to substitute frame ticks text labels and have the layout in x-y plane?
Starting with a ...
7
votes
2
answers
2k
views
How to create a bar chart from a list of heights *and* bin delimiter positions?
Basically, I'm trying to produce the same output that Histogram[giganticList] would produce, but starting from the output of ...
5
votes
1
answer
350
views
What are Epilog x-Axis Positions In BoxWhiskerChart (with BarSpacing option)?
I have a dataset that has a number of groups with overlapping sets. There is a point in the group within the intersection of the sets that I want to highlight by placing a marker of that point between ...
3
votes
2
answers
642
views
Display asterisk as it enter in Mathematica v11
In Mathematica v11, entering an asterisk from keyboard would be displayed as a 'times' operator, ie, it is not placed at top right corner of a text (as in Mathematica v9). I notice [Star] and [RawStar]...
15
votes
6
answers
927
views
Better way to sort course grades
I use the following code to create a histogram of grades. Grades are provided as a List of strings such as "A-", "D+", "E" (don't ask), etc. The +/- substitution hack is necessary to sort the grades ...
12
votes
1
answer
856
views
Control parameters of different styles of DistributionChart
Using DistributionChart, you can choose among several styles aka ChartElementFunction:
...
11
votes
3
answers
2k
views
How do I overlay things onto a BarChart?
I have a fairly complex sort of BarChart that I want to overlay with other graphics. For concreteness, let's assume that I want to overlay a ...
11
votes
1
answer
149
views
PieExploded in newer versions
I am trying to explode one segment of a pie chart. How does this work in version 10. PieExploded is obsolete now. Can't find out how to use SectorSpacing for this.
Many thanks for a hint.
10
votes
1
answer
970
views
BoxWhiskerChart - 10-90th percentile instead of min - max
I am trying to draw a custom BoxWhiskerChart with alternative values determining fences.
I have data that has a lot of outliers and I have to compare it to another ...
9
votes
2
answers
2k
views
MaTeX doesn't change fonts on axes?
I am running Mathematica 11.0, and am trying to create a bar chart to insert into a LaTeX document; since the document is in LaTeX, I would like the look of the chart to be in line with this, and so ...
8
votes
4
answers
447
views
Equivalent of RadialOutside for Graph VertexLabels
I'm creating a circular graph and want the labels to be placed on the outside of the vertices in a circular manner on the outside of the graph. I've been playing around with the ...
8
votes
2
answers
1k
views
How to plot BarChart with error bars on logarithmic scale in Mathematica 9?
I'm quite new in Mathematica, and I would like to ask you to consider the next case:
I need to plot bar chart with error bars on logarithmic scale.
From Wolfram site I took the function which allows ...
8
votes
2
answers
646
views
Bar chart scale in multi-chart visualisation
This is a rewording of a previous question which probably wasn't very well explained, and so didn't get any responses(!).
I'm trying to create a chart which shows the smooth kernel distribution of ...
7
votes
3
answers
356
views
How to present a Barchart and a Table in a single figure
Using the following code,
...
6
votes
1
answer
298
views
Custom color for fence, whisker and outliers in BoxWhiskerChart
How can I use custom color for fence, whisker and outliers.
Here is my MWE
...
6
votes
2
answers
853
views
Histogram3D using sums instead of counts
I'm trying to create a 3d histogram/ matrix plot pair. My data is in the form
{{TTR1,TBF1},{TTR2,TBF2},....}
What I would like is to modify the Histogram3D so ...
5
votes
1
answer
181
views
PieChart and legending issues
I'm trying to do some bar charts and pie charts in Mathematica, but I can't figure out how to make the legend colors correspond to the actual colors on the charts. I'm running
...
5
votes
2
answers
665
views
PairwiseScatterPlot with histograms along the diagonal
The built-in function PairwiseScatterPlot has been discussed for example here: Scatterplots for subsets of multivariate data [Updated].
However, I find it not very ...
5
votes
2
answers
198
views
How to extract (absolute) Tick and/or PlotRange specs from output of Histogram?
If, for example,
g = Histogram[RandomVariate[NormalDistribution[0, 1], 200]];
...I want to extract an absolute (abscissa) Tick...
5
votes
3
answers
520
views
Retrieving PlotRange from BarChart
Consider the following data:
data1={73.9377, 54.4122, 53.0826, 24.1936};
data2={76.828, 49.1673, 45.7883, 18.9015};
I defined my own ...
4
votes
2
answers
2k
views
Multiple histograms grouped in a chart
I have this problem: I have three distributions and the relative histograms. But I would like to create an histogram in which the three columns of each single histogram for the same bin are put ...
4
votes
2
answers
146
views
how to efficiently use a time series database to plot Barcharts or LinePlots
I have the following input:
...
4
votes
4
answers
514
views
How to place more than one ChartLabel in a BarChart
I have the following data:
...
4
votes
1
answer
2k
views
Histogram: Compare PDF to Data
Goal
I would like to make a plot which satisfies the following:
Formost it should contain the Histogram of the data, with an overlay of the PDF
Two y-axes, the left being the count for the elements ...
4
votes
1
answer
539
views
How to access box-and-whisker specifications from custom ChartElementFunction?
I am creating a custom ChartElementFunction for BoxWhiskerChart. I would like to access the box-and-whisker specifications from ...
4
votes
2
answers
2k
views
Most convenient way to set legend marker size?
If I add a legend using
Legended[..., SwatchLegend[..., ...]]
then I can explicitly set the legend marker size using the ...
3
votes
1
answer
126
views
Create a custom diagram
Suppose we have the following list with a row of integer numbers
data = {0, 0, -1, 1, 1, 2, 9, -2, 2, 1, 1, 1, 0, 0, 9, 9, -1, 0, 9, 2}
Each integer corresponds ...
2
votes
1
answer
288
views
Histogram scale error when using DistributionChart
I'm a novice Mathematica user that is having some problems using the HistogramDensity function in a DistributionChart. My observations are heavily skewed to one category and the height of the other ...
1
vote
2
answers
2k
views
BarChart with error bars
I need to plot BarChart with the error bars. What's the most straightforward way to do it?#plot range from 8 to 10 ...
14
votes
5
answers
2k
views
How to plot paired smooth histogram/distribution plots?
I've been trying to get paired distribution (aka "violin") plots like those shown below for a few hours, but all my attempts have failed.
The key features here are
paired smooth histograms/...
12
votes
3
answers
1k
views
How to create Gantt charts
How can one best create standard Gantt charts in Mathematica, where the horizontal axis is time (preferably in the Mathematica time format) and where one can include labels within each horizontal bar? ...
12
votes
3
answers
331
views
Strange Behavior in Barchart LabelingFunction
Bug introduced in 10.0.0 and fixed in 10.0.1
BarChart formatting algorithm make me loose some time today in V10.
Now, ...
9
votes
2
answers
660
views
How to create a stacked BarChart with custom bar origins as function?
I want to create a simple stacked bar chart where the bars start a custom y-axis point and end at another y-axis point.
So far I have:
...
9
votes
2
answers
233
views
How to force DistributionChart to plot empty datasets?
Is there any way to force DistributionChart to display anything where there is an empty dataset? In the below example I'd like to have ...
9
votes
3
answers
337
views
Decrease padding around Bar Chart
I don't like the default amount of padding / white space around BarChart. How can I specify it?
BarChart[{1, 2, 3}]
9
votes
2
answers
4k
views
How can I make a list plot with bars?
Can anyone help me please? I don't want a Histogram; I don't want a BarChart, not even a ListPlot with drop down lines. I want a list plot with drop down columns/bars: please see the link.
It is ...
9
votes
4
answers
3k
views
BoxWhiskerPlot - how to specify boxes position on the horizontal axis
Let's say I have a folowing set of data:
k = 1 : list of values
k = 3 : list of values
k = 10 : list of values
I know that to make a BoxWhiskerChart I have to ...
8
votes
2
answers
386
views
Intra day data with TradingChart
I am trying to use TradingChart to display some intra day data (60 s. resolution). Is there a way to modify the time displayed when moving the mouse over the data. ...
7
votes
1
answer
432
views
Stacked/Percentile Bar Chart formatting
There seem to be a lot of questions regarding the formatting of bar charts. Sadly, I couldn't find solutions to my problems, despite all the skimming. Apologies if I missed something. Problem ...