Hot answers tagged

11 votes

How to remove double ticks in bar charts and remove/ extend space between bars?

Trawling through the documentation of BarChart ...
IntroductionToProbability's user avatar
9 votes

How to draw a bar-in-bar chart using Mathematica? or align two bar/rectangle charts at the center of the bar rather than the left alignment?

SeedRandom[1]; data = RandomInteger[{5, 40}, {10, 2}]; First, a helper function to pre-process input data to add metadata to be used for scaling bar widths: ...
kglr's user avatar
  • 392k
6 votes
Accepted

How to show two plots with different axes?

We can use ResourceFunction["CombinePlots"] ...
kglr's user avatar
  • 392k
6 votes

How to show two plots with different axes?

...
eldo's user avatar
  • 61.4k
5 votes
Accepted

How to draw a bar-in-bar chart using Mathematica? or align two bar/rectangle charts at the center of the bar rather than the left alignment?

...
Syed's user avatar
  • 48.8k
4 votes

Remove spacings in BoxWhiskerChart

SeedRandom[1]; data1 = RandomVariate[NormalDistribution[55, 10], 1000]; data2 = RandomVariate[NormalDistribution[65, 10], 1000]; data = {{data1, data2}}; You can ...
kglr's user avatar
  • 392k
4 votes
Accepted

How to locate chart labels correctly?

The easiest is probably to use wrapper-style Labeled[...] and Style[...] specifications as follows: ...
Lukas Lang's user avatar
  • 33.6k
3 votes

How to Add Inner Squares to Bar Chart Using BarChart[] Function?

1. ChartElementFunction We can use a custom ChartElementFunction to add lines to rectangles: ...
kglr's user avatar
  • 392k
3 votes
Accepted

How to map community structure with circular embedding and normalized edge weights?

Start from drawing graph based on community. Compute vertex coordinates: ccoord = CirclePoints[{1, 0}, 21][[Ordering[VertexIndex[g, Flatten[community]]]]]; ...
halmir's user avatar
  • 15k
3 votes

How to draw a bar-in-bar chart using Mathematica? or align two bar/rectangle charts at the center of the bar rather than the left alignment?

We can also use a custom DisplayFunction that post-processes BarChart output to rescale rectangle groups: ...
kglr's user avatar
  • 392k
3 votes
Accepted

Remove spacings in BoxWhiskerChart

With: ...
Syed's user avatar
  • 48.8k
3 votes
Accepted

Error bars in Barchart with Graphics3D

...
kglr's user avatar
  • 392k
2 votes
Accepted

How to plot a community structure with specific properties

add the following: ...
halmir's user avatar
  • 15k
2 votes

How to Draw Rectangle Chart Using Three Layers of Data?

Second comment Does the following dataset correspond to relationships in data? If yes, can you provide the correct dataset representation? (It is likely the one I produced below is wrong...) ...
Anton Antonov's user avatar
2 votes
Accepted

How to generate a bubble chart of a directed graph with several properties using Manipulate[.]

Construct a weighted graph: ...
halmir's user avatar
  • 15k
1 vote
Accepted

How to Draw Rectangle Chart Using Three Layers of Data?

You can separate levels using the option "Spacing"and associate colors with different levels using the option ...
kglr's user avatar
  • 392k
1 vote
Accepted

Legend without colors

Your code runs with no issues on v.13.2.1, so it is either a version or Kernel issue. In case the problem persists on a fresh start of MMA, then perhaps try by having explicit colours used: ...
alex's user avatar
  • 1,396
1 vote
Accepted

3D Timeline of 2D Barcharts

Here is an attempt. Usually, for all the 2D expressions that I want to embed in a 3D space I use Texture which is then placed within an area defined by a Polygon. The Polygon can be defined in any ...
demm's user avatar
  • 1,523
1 vote

How does one plot a 3 dimensional table of numbers?

...
eldo's user avatar
  • 61.4k
1 vote

Waterfall Stacked BarChart

yData = {10, 7, 4, 10, -5, -2, 4}; To visualize step directions, we can use ChartLayout -> "Stepped" with built-in ...
kglr's user avatar
  • 392k
1 vote

How to change texture of chart bar?

Since Version 12.1 there is also PatternFilling which offers countless possibilities. ...
eldo's user avatar
  • 61.4k

Only top scored, non community-wiki answers of a minimum length are eligible