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.

Filter by
Sorted by
Tagged with
4
votes
2answers
915 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: ...
2
votes
1answer
80 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
184 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: ...
1
vote
0answers
46 views

Axes position and axes label in RevolutionPlot [duplicate]

Consider Revolution plot: ...
0
votes
3answers
678 views

Changing error bars color

I have the following plot ...
2
votes
2answers
80 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
30 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
133 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 ...
1
vote
1answer
58 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
83 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
257 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
111 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
113 views

Preserving changed Output style

Let's say I have a stylesheet with two slightly different "Output" and "Output2" styles. ...
0
votes
2answers
74 views
4
votes
0answers
70 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
21 views

Match axes lengths of two plots? [duplicate]

Consider the two plots ...
0
votes
1answer
41 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
481 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
50 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
85 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
57 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
147 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
73 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
335 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
179 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
57 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
122 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
504 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
272 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 ...
5
votes
1answer
209 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: ...
0
votes
0answers
27 views

How to print expression in color using Print function? [duplicate]

I am wondering how would you print the expression with color using function Print. For example, I tried the code below but the output of print function is just ...
1
vote
1answer
38 views

Shrinkage caused by TableForm

Writing: ...
3
votes
0answers
56 views

Merging list valued style options

As shown in Difference between ParentList and Inherited we can use ParentList to nicely merge additional rules. It seems to work nicely when it comes to inheriting ...
3
votes
2answers
229 views

Multiple colors on a single graph edge?

Is there any way to put two colors on one single graph edge? For example, I want to highlight two cyclic paths (red and blue). But, if I put the two colorings into one image, it does not work as I ...
3
votes
1answer
93 views

Why does Mathematica ignore my stylesheet for DisplayFormulaNumbered cells?

I made a custom stylesheet, installed it, and applied it to a new blank notebook. Adding a cell and changing it to Text results in the expected behavior. The font and font size change to whatever the ...
1
vote
1answer
47 views

How to style x-label of two data-sets differently in FrameLabel?

Hi I have following code, unfortunately it does not lead to the result of the label G1 shown in black and the label G3 shown in red with fontsize 22. ...
3
votes
2answers
534 views

How to rescale x axis

Please suggest how to rescale x axis by t0: I am trying to plot given below exponential. ...
1
vote
2answers
75 views

Rotated copies for spiral wireframe

...
2
votes
4answers
275 views

How to reverse the x axis in ContourPlot

I have the following equation p = 1.6; α = 0.001; r = 0.6; η = 0.04; ω = 1; R ω p Sin[ω τ] + R ω p α - 9/4 r p R^3 ω - η p R == 0 I want to plot ...
3
votes
3answers
2k views

FillingStyle and Opacity won't work together in Mathematica

I try to plot some data in Mathematica using the ListLinePlot[]. Unfortunately the plot option ColorFunction, ...
9
votes
4answers
3k views

How can I create a help button that looks more “professional”?

My goal, is to make the following button, ...
8
votes
2answers
749 views

wolframscript — How to print in color

I want to print to the console in color from a wolframscript. I tried just using a Style: ...
2
votes
2answers
125 views

How to highlight the cells that satisfies the condition?

MemberQ[IntegerDigits [#], 3] & /@ Range[100] Grid[ArrayReshape[Range[100], {10, 10}], Frame -> All] I want to get a 10 by 10 grid, that highlights all ...
1
vote
3answers
422 views

Is there a way to “hold” prefix / infix / postfix notation?

Is it possible to preserve a specific style of notation in $Mathematica$ output? foo // bar (* bar[foo] *) Hold[foo // bar] (* bar[foo] *) I'm writing some code ...
8
votes
2answers
143 views

Better aesthetics for graph vertices?

This is a follow-up question to: Unable to export a formatted graph? I trying to layout a graph so that if you zoom in on a vertex, things look nice. To see what I mean by nice, let me just describe ...
2
votes
1answer
154 views

How to make a discrete ListPlot3D look like a Histogram3D?

I want to plot a list of 3D points and make it look like this: where each value is represented by the height of a rectangular parallelepiped (with square top and bottom face). As a simple example I'...
1
vote
1answer
58 views

Clarifying which segement of a curve overlap is in the foreground/background [duplicate]

I plotted the left curve using regular ParametricPlot3D. In parts where the curve overlaps itself, it is unclear which segment is in the foreground and which in the ...
3
votes
1answer
73 views

Collection of styles for Plot/ListPlot

I'm trying to define my own collection of style commands so that I don't have to type them for all my Plots and ListPlots. The ...
0
votes
1answer
118 views

PlotStyle based on If condition

So in the If[evecs==Re[evecs], I want to then change the colour in PlotStyle of the ...