Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [style]

Questions about applying a consistent look or form to Mathematica output, including use of the built-in styling constructs (Style, PlotStyle, etc). For questions specific to styling in notebooks with stylesheet properties please use the [stylesheet] tag.

2
votes
2answers
43 views

Distance between axes and tick labels

A similar question has been axed before in the context of a Framed plot: see here. My plot is unframed so I wasn't able to apply the answer to the other question. I create a histogram with the code ...
9
votes
1answer
1k views

Solarized stylesheet and other goodies. Feedback welcome!

I was inspired by this post so I've made a Solarized stylesheet after mucking around with the text options and asking stupid questions on here. I know you can change the syntax highlighting by running ...
1
vote
1answer
87 views

Coloring multi-edges in graphs

I have the following edgelist and colors: ...
3
votes
2answers
99 views

Print integer number fraction as string of numerator and denominator

I want to convert an integer number fraction as text with a certain font, size and color: Example: ...
1
vote
0answers
30 views

Generic symbols vs Generic functions arguments [closed]

I've got a lot recursion relation that takes multiple hours at a time to run. I'm looking for some subtle reasons why it takes so long, and hoping to be able to reduce the time it takes for the more ...
2
votes
2answers
52 views

Grouping of BarChart and BarChart labels

Thanks to m_goldberg remarks here, the following BarChart was obtained: ...
2
votes
1answer
63 views

Correct my use of BarChart labels

I need to make a good bar chart based on the table below (the number of nodes with its probability of falling correspond to each OF): Thanks to kglr I got the necessary BarChart: ...
8
votes
0answers
41 views

Styles inheritance stack for elements of a Graphics/GraphicsBox

You can skip to the bottom if you only care about the question. My original goal was to control FrameLabel color from a notebook level opposed to doing it ...
3
votes
1answer
178 views

Limited line style for differentiating curves in the plot

Question 1 I have a plot which consists of six curves, and I wanted to differentiate these line without using any color. I the only option that I left with is to use different line style. After ...
5
votes
1answer
46 views

How to not show line mesh elements

Let's say I make a mesh from a collection of random points: SeedRandom[1234] points = RandomReal[1, {20, 2}]; mesh = VoronoiMesh[points] For the purposes of my ...
0
votes
2answers
42 views

ParametricPlot table of complex functions in several graphs

Assume that I have a table of complex functions like Clear[p] Clear[M] M = 10; G = Table[Sin[i p] + p I, {i, M}] I want to ParametricPlot them in graphs, each ...
1
vote
1answer
39 views

Adding color and opacity to 2D scalar function with respect to its abolute value?

I'm trying to represent the absolute density of a 2-variable scalar function by color and tranparency/opacity. By absolute denstiy, I mean the absolute function value. I tried to do the coloring as ...
5
votes
3answers
500 views

can't blend gradient colors with a stream

The following function generates a plot of the 3d function indicated in the example. ...
1
vote
2answers
34 views

Coloring ParametricPlot of several complex functions

I want to PlotLegends -> "Expressions" for G with different colors where G = {{Sqrt[1 - x] + I Sqrt[x]}, {Sqrt[1 - x] - I Sqrt[x]}} I tried the following ...
1
vote
0answers
43 views

Is there a good strategy or method to produce “cascading” styles?

I want to write a theorem in form of group of cells in a notebook. I want all the cells within the theorem grouping have the same styling such as background color, text font, etc. I would also like ...
2
votes
1answer
40 views

Can I prevent changing the background color from changing the cell spacing?

The first image shows what my list of items looks like with no background color. The second shows what setting the background color to light green does to the cell spacing. That is not what I want. ...
8
votes
1answer
100 views

How to add inner ticks to a PieChart?

I know how to add Callouts to the outside of a PieChart, but I would like to add inner ticks like this: Note the 3, 6, 9, 12 ...
4
votes
1answer
58 views

Styling CurrentValues in Stylesheet

I've succeeded in putting the notebook title into page headers (thanks to @Kuba), but I failed at styling the label. ...
4
votes
2answers
586 views

Multiple GridLines of different colors

I wanna plot 2 gridlines in colors. One in red. Other in blue. How to do it? Wrong code: ...
11
votes
1answer
361 views

Graph: Coloring parallel edges individually

CODE: Graph[{Style[0 -> 1, Red], Style[0 -> 1, {Blue, Dashed}]}] This Mathematica code will make both lines solid Red, since they belong to the same two ...
2
votes
1answer
61 views

Adding overlapping non-weighted, directed edges to a weighted, undirected graph

I have the following Mathematica code based on the GDB1 instance from the CARP literature: ...
7
votes
2answers
170 views

Weighted graph with multiple different coloured non-weighted paths - styling

This follows on from my previous question answered here. Ultimately, I now have a graph which I've simplified for posting here: ...
0
votes
3answers
260 views

Changing error bars color

I have the following plot ...
2
votes
2answers
78 views

How to automate creation of sections in mathematica worksheets?

I want to do a for loop to compute some values, create a new (sub-)section and print those values there within each iteration. How would it be possible?
0
votes
0answers
18 views

Labels on 2D ListPlot Markers [duplicate]

If we take the example ListPlot[{{1.5, 2}, {1, -2}, {2.5, 6}, {3, -5}} -> {"a", "b", "c", "d"}] I would to see the labels correctly correspond to the 2D ...
1
vote
2answers
53 views

Change distance between vertical y-axis label and plot

I'm trying to do something that should be fairly straightforward: having a vertical y-axis label. My problem is, it creates a ridiculously large space between the label and the axis (exactly what I'm ...
18
votes
1answer
2k views

Thickness of logarithmic tick marks

Bug introduced in 8 or earlier and persisting through 11.1.1 I'm trying to plot a graph wit a logarithmic y-axis. Since I'm exporting the graph to pdf and later printing it, I want to manually set ...
1
vote
1answer
38 views

How to add boundaries for the points of a ListPlot?

I have a plot as below: ListPlot[{{{1, 5}}, {{4, 2}}}, PlotStyle -> {{Red, PointSize[0.03]}, {Green, PointSize[0.03]}}, PlotRange -> {{0, 5}, {0, 6}}] I ...
3
votes
1answer
81 views

How can I use the help document style?

I have spent a lot of time looking for this information on the Internet。Unfortunately,I can not find it。Please help me。Thank you,Thank you。 (I do not how to describe this question。May god forgive me ...
6
votes
3answers
216 views

Syntax highlighting in text cells

I want to write some documentation for a notebook using text cells. Now, I can select parts of the text within such a text cell and set its style to "Input". This does change its font, but there is no ...
0
votes
1answer
71 views

Graph (network) styling: avoid vertices and edges overlapping

Is there a way to avoid the edges and vertices 'overlapping' in a graph with custom styling? That is, the edges should stop once they reach the 'border' of the shape representing the vertex (in this ...
6
votes
1answer
103 views

Preserving changed Output style

Let's say I have a stylesheet with two slightly different "Output" and "Output2" styles. ...
3
votes
0answers
52 views

Highlight selected text everywhere?

Notebook++ has a very useful feature which highlights all occurrences of certain text once it has been selected with the mouse cursor in one spot: It is very useful in order to jump between different ...
1
vote
0answers
20 views
0
votes
1answer
32 views

Adding Legends in the plot, aligned in a row

How can I add the legend in a plot, INSIDE the plot (as in the figure below), but in a way that they are arranged in row and not in column? What I have done so far: ...
9
votes
5answers
455 views

Replicating a PlotStyle from Trees, Maps, and Theorems

How might I make a plot with this style, where the callouts are on the side and the y-axes chopped off for a minimal look? Here's some example data with the callout that I'd like to add, but I'm not ...
3
votes
1answer
32 views

Make size of ListPolarPlot with PolarAxes consistent

I am currently having an issue with ListPolarPlot, specifically with achieving a consistent size among multiple plots. Consider the following illustration of my ...
0
votes
0answers
54 views

Graphics3D ignores EdgeForm

Works great: Graphics[{FaceForm[White], EdgeForm[AbsoluteThickness[10]], Polygon[{{0, 0}, {1, 0}, {0, 1}}]}] Ignores color and thickness: ...
2
votes
1answer
44 views

Docked Cell Slider that controls magnification of Output Cells only

The following code (found here on stack exchange) creates a docked cell which contains a slider that can be used to change the magnification of the entire notebook. ...
4
votes
3answers
101 views

How can I set the style of one Output cell so it doesn't change after re-evaluating its Input cell?

I have created a notebook for my classes which is full of inputs that need to be evaluated by my students. All these inputs produce standard outputs, which are fine as they are. But there is one of ...
2
votes
2answers
58 views

Customize plot with CapForm?

Simple plotting question: I'd like to keep the base style of the "Business" theme, but with two slight modifications: Use CapForm to round the ends of my plot ...
4
votes
1answer
103 views

How to increase dash length in DotDashed

How can I modify the usual curve style DotDashed such that the length of the dashed portion is increased or is controllable? For example in ...
2
votes
1answer
79 views

How do I reset Mathematica's DisplayFormulaNumbered cell style numbering?

Since I am writing many equations, in various chapters, I need a way to reset numbering in this cell style. The following shows what I need: x + y = 15 (1) x - z = ...
1
vote
0answers
55 views

Cell style inheritance and specifying the same style twice [duplicate]

Bug introduced in V11.1 or earlier and persists through V11.3 [CASE:4061571], confirmed Consider the following three examples of a cell: ...
5
votes
1answer
108 views

Changing line style in Dendrogram

How does one change the line style in Dendrogram? BaseStyle changes the style on the points (vertexes) and ...
7
votes
2answers
323 views

How to create the waved style for curves in Graphics?

There are the dashed and dotted styles for lines and circles when we plot them with Graphics....
15
votes
3answers
254 views

How to specify custom graph styles for GraphStyle?

There is a way to specify custom themes for plots (Is it possible to define a new PlotTheme?), but themes do not apply to Graph objects, not even to ...
4
votes
1answer
115 views

Color in TableForm

Happy Easter! How can I change the background color of one specific row in TableForm? Or can I even do it ? for instance: ...