Skip to main content

Questions tagged [charts]

Questions about building charts in Mathematica. This includes generating the graphics, prettifying them, and using methods to extract their data.

Filter by
Sorted by
Tagged with
4 votes
3 answers
383 views

Polar Bubble Chart

I would like to create a plot similar to that in the figure 1. I tried using both ListPolarPlot and BubbleChart, but they do not have the right option for creating a polar bubble chart. Any suggestion?...
Luigi Mancini's user avatar
3 votes
1 answer
95 views

Multiple legends for barCharts

I came across this and found it quite cool. Here is the minimal example: ...
Shb's user avatar
  • 701
4 votes
2 answers
144 views

Plotting a Set of Three Points with Histogram3D

I would like to know whether I can use Histogram3D to plot a set of points with three given values. I want to plot the values {0, 0, 0.01}, {0, 1, 0.1}, {1, 0, 0.02}...
Naps's user avatar
  • 271
8 votes
1 answer
168 views

How-to generate a stacked BarChart?

I would like to generate a stacked BarChart using following sudo dataset. ...
e.doroskevic's user avatar
  • 5,979
3 votes
2 answers
90 views

Display `Table` output as a 3D bar chart

Create a simple function with arguments {i,j}, and make a Table for an array of values. For example: ...
Richard Burke-Ward's user avatar
9 votes
3 answers
374 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}]
Tom's user avatar
  • 3,416
2 votes
1 answer
55 views

How to obtain Detele

From a={{6, 4}, {8, 1}, {11, 3}} How to obtain {{6, 8, 11}, {6, 11}, {6,11}, {6}} or ...
Mika Ike's user avatar
  • 3,261
3 votes
1 answer
79 views

Modified BoxWhiskerChart for statistical summary of data

I would like to make a statistical graph (chart) from data in the format {x-value, mean value, standard deviation} as in: {{10, 10.73, 0.72}, {20, 14.10, 0.49}, {30, 13.96, 0.49}, {40, 13.43, 0....
David G. Stork's user avatar
0 votes
1 answer
68 views

Apparent discrepancy between visual and calculated Mean in Histogram

From a randonly generated normal distribution of values v: v = RandonVariate[NormalDisrtibution[56.6*10^-9,2.5*10-9]] I ...
José Augusto Devienne's user avatar
4 votes
3 answers
305 views

Stacked grid BarChart3D

I'm looking to use BarChart3D (in "Grid" mode) to show the elements of two real & positive matrices simultaneously. Since this will become a function in a ...
Anti Earth's user avatar
  • 1,211
6 votes
1 answer
614 views

Generating a broken or snipped Y axis in BarChart

Is there a way to reproduce the following behavior in BarChart? I have seen this in ListPlot, but I am not sure how it can be ...
Guillermo Oliver's user avatar
2 votes
1 answer
92 views

DistributionChart only shows entries with more than one value

DistributionChart does not show entries for sublists containing only one element. Although I can understand why this would be reasonable (there's no "distribution" of a single element), it seems that ...
Joshua Schrier's user avatar
2 votes
1 answer
78 views

Mixing a BarChart and BoxWhiskerChart

I am trying to put together a BarChart and a BoxWhiskerPlot in this form: ...
Ask8's user avatar
  • 637
8 votes
2 answers
243 views

V12.1 shows extra space using BarChart3D compared to V12

V 12.1 on windows 10 shows extra space above and below BarChart3D compared to V 12 using the same code. I'like to put a label above this one below, but the space ...
Nasser's user avatar
  • 146k
2 votes
0 answers
60 views

Is there a better way to space ChartLabels?

I am looking for a better way to specify the spacing between ChartLabels when using BarChart. My current implementation uses ...
david's user avatar
  • 1,290
0 votes
1 answer
459 views

Barchart: Displaying multiple data sets and filling pattern

Is there a way I can code the following excel bar chart into Mathematica. Is there any guidebook I can follow? I’m struggling displaying multiple data sets into one figure and filling in the bar with ...
Sarah's user avatar
  • 1
8 votes
1 answer
211 views

Why do GridLines/Ticks in TimelinePlot not make sense in some cases and what to do about it?

Fixed in 13.0 Background Following up on how TimelinePlot can be used to plot GanttCharts (176012) I noted some peculiarities ...
gwr's user avatar
  • 13.5k
4 votes
1 answer
164 views

Rotate Ticks in a Histogram

I have a histogram like the one presented here by @kglr (Combine BarChart and TimeLinePlot). For the sake of brevity, I excluded the issue with timelineplot: <...
M.A.'s user avatar
  • 731
0 votes
1 answer
143 views

How can I dynamically label Bar charts

I found the following labeling code (by @Brett) and like to use it as an example: ...
Tugrul Temel's user avatar
  • 6,233
10 votes
3 answers
685 views

How does BoxWhiskerChart detect outliers?

BoxWhiskerChart can detect and show outliers: ...
Szabolcs's user avatar
  • 236k
6 votes
1 answer
194 views

Legend for Bubblechart

I am trying to create an easy legend with bubbles for a Bubblechart. The legend should have the BubbleSizes -> {.02, .05}, for the scores 3 to 8 and ranging with the rainbow colors. Basically this ...
Faye Drew's user avatar
  • 301
3 votes
1 answer
203 views

BarChart Labels for two lists

a quick question: I am trying to label a BarChart that consists of two lists (groups). The label should keep going on with the Label list (so ddd, eee, fff) and not repeat itself (and start from aaa, ...
Faye Drew's user avatar
  • 301
4 votes
1 answer
297 views

Tooltip for BarChart

I'm not looking for something super fancy, but just getting BarChart to show X value and Y value seems to be challenging to get. Here's a toy example. data = {{"Data 1", -10.}, {"Data 2&...
Gani Ganapathi's user avatar
2 votes
1 answer
86 views

BarChart simultaneous axes label and numerical label

So I want to be able to put axes labels simultaneously as the numerical labels. I can achieve that with the following, but is there a better/cleaner way? I can't use callout, because I am using ...
ions me's user avatar
  • 991
4 votes
1 answer
205 views

How to force DensityHistogram to draw empty bins?

By default, when using the "Count" density specification, DensityHistogram does not plot empty bins. And thus the legend starts ...
Sylvain Leroux's user avatar
3 votes
1 answer
127 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 ...
Vaggelis_Z's user avatar
  • 8,790
2 votes
3 answers
218 views

Changing Y-Axis to "Billions of Dollars"

Is there a way to change my bar chart's Y-axis from powers of 10 to "billions of dollars"? For example $100,000,000,000 should read as ...
George's user avatar
  • 3,145
0 votes
1 answer
69 views

plot a performance envelope (changable ellipse) [closed]

I am learning by myself to use Mathematica. I am quite new actually. I'd like to plot something that resembles the picture below, but here's the thing, I want to know if there is a possibility to ...
MasterLD's user avatar
1 vote
1 answer
170 views

How to merge a polar plot, histogram and density colour values?

I am trying to get direction data into an histogram a circular one. Something like this: ...
mrvladivostok's user avatar
18 votes
2 answers
896 views

Insets around a clock

I have this code to generate a clock-like diagram: ...
Rodrigo's user avatar
  • 1,534
1 vote
0 answers
53 views

Making a histogram of a dictionary

I am trying to make a histogram of the dictionary where each bin is how many characters in a word, and the height is the frequency of words with that many characters. I'd like to make one for the ...
Carlos Mario Cabrera's user avatar
3 votes
2 answers
192 views

Change colour of bar in stacked bar chart within range

I'm trying to change the colour of a bar when a number falls within the range. For instance, here is a stacked bar chart ...
Tim B's user avatar
  • 547
4 votes
1 answer
217 views

Ideas for styling graph nodes with weights

Suppose we have the following random graph SeedRandom[100] n = 15; m = 20; G = RandomGraph[{n, m}, VertexLabels -> "Name"]; and a list of weights for the ...
user avatar
1 vote
1 answer
182 views

Manipulate chart disappears when sliders are moved

I have a Manipulate function that has two other functions inside of it, it has two sliders that each take in a value and show a bar on a graph from each input. Each value is shown on the chart as part ...
kgrafton's user avatar
  • 263
4 votes
1 answer
326 views

BarChart and ColorFunction

There are really two questions. The first is: how does one get BarChart to generate x coordinates. That is, ListPlot takes a list of pairs, but ...
Igor Rivin's user avatar
  • 5,094
3 votes
2 answers
160 views

BarChart: First Bin centered at 0 instead of 1

I want to plot an overlapped graphic comparing the experimental and theoretical data of the number of counts in a given time (beta decay), so I show them in a histogram. Because of sometimes the ...
Dani Doménech's user avatar
1 vote
1 answer
71 views

Use special characters or regular characters with BubbleChart

I have a list of points I want to plot. I'm trying to use BubbleChart because I want to assign to each point a different shape. How do I plot a BubbleChart with each point drawn with a different ...
Miguel's user avatar
  • 981
8 votes
2 answers
800 views

How to plot two axis bar chart side by side

I want to plot a bar chart using the given data, I am trying to plot by given code but chart only slightly displaced( I want it to the side by side) ...
Gopal Verma's user avatar
  • 1,065
4 votes
2 answers
184 views

How to create a `BarChart[]` with color rules determined from categorical data?

Let's say I have a list of color names (strings), like this: samples = {{"blue, red, red"}, {"purple, blue, purple"}, {"blue, blue"}}; Then I can plot the ...
TumbiSapichu's user avatar
  • 1,603
5 votes
2 answers
122 views

ChartBaseStyle in BarChart3D - possible bug

It looks like ChartBaseStyle in BarChart3D doesn't work in Grid mode when the matrix is larger than 9x9: ...
Fraccalo's user avatar
  • 6,087
2 votes
1 answer
54 views

How to increase the pointsize of the point-markers in the legend of a cluster-chart?

I start the following mock data set: data = RandomReal[{0, 700}, {10^4, 2}]; I use k to define the number of cluster points: ...
Gilmar Rodriguez Pierluissi's user avatar
1 vote
1 answer
143 views

Why are callout labels being double counted on my stacked bar chart?

See below: The problem is that the "leftist" labels are being counted twice on the right stacked bar. How to fix this?
George's user avatar
  • 3,145
22 votes
2 answers
2k views

How to create diagrams using Wolfram / Mathematica?

How can one use Wolfram to make diagrams like with the arrows labeled as well (to label "mediating factors" between the causal elements)?
George's user avatar
  • 3,145
6 votes
1 answer
202 views

Remove ticks from chart labels

Given the following chart: BarChart[{{1, 2, 3}, {4, 5, 6}}, ChartLabels -> {{"r1", "r2"}, None}] How can I remove the ticks of the chart labels (marked with ...
holistic's user avatar
  • 2,995
7 votes
1 answer
155 views

Formatting ChartLabels for a BarChart with ErrorBars

I have the following BarChart, that uses a custom ErrorBar function to plot error bars: ...
holistic's user avatar
  • 2,995
2 votes
1 answer
119 views

Create inclined chart labels on stacked bar charts

Ive hunted high and low for a solution. I can put inclined labels on bar charts: ...
Boris's user avatar
  • 421
1 vote
1 answer
149 views

BarChart LabelingFunction->Right label overlaps with chart label when BarOrigin -> Left

...
Rohit Namjoshi's user avatar
2 votes
1 answer
89 views

Making a BarChart of a Two Column Dataset

If I have a 2-column dataset like: How do I make a BarChart in the obvious way (i.e., bars labeled by FileName, in this case)?
George's user avatar
  • 3,145
2 votes
1 answer
135 views

Making a Stacked GitHub Bar Chart [closed]

Here's a picture of what I mean by a stacked bar chart: Question: For the following GitHub repos: Organization1/Repo1 (branch: branch1) Organization2/Repo2 (branch: branch2) How can one make a ...
George's user avatar
  • 3,145
2 votes
1 answer
92 views

Stacked Bar Chart with a bar showing the forecasted quantity and the real quantity as the part of this bar

I was looking for a way to make a stacked bar chart, where a bar shows the forecast and the real quantity as the part of the forecast. So, if the forecasted quantity is 10 and the real quantity is 5, ...
Liza Belyaeva's user avatar

1 2
3
4 5
9