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
0
votes
2answers
88 views

How to make the legend with color more compact in a plot?

I have a plot as below:- ...
1
vote
0answers
22 views

Match axes lengths of two plots? [duplicate]

Consider the two plots ...
4
votes
0answers
79 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 ...
0
votes
1answer
54 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
514 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 ...
4
votes
1answer
76 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
102 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
60 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. ...
2
votes
2answers
87 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
624 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 ...
1
vote
0answers
59 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: ...
4
votes
3answers
167 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 ...
7
votes
2answers
956 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....
5
votes
1answer
291 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: ...
2
votes
1answer
275 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 = ...
0
votes
0answers
34 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
39 views

Shrinkage caused by TableForm

Writing: ...
3
votes
0answers
59 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
1answer
120 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
53 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. ...
1
vote
2answers
80 views

Rotated copies for spiral wireframe

...
2
votes
4answers
352 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 ...
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
1k 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
127 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
1answer
72 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 ...
4
votes
2answers
241 views

Setting each “curve” on a 3D plot to be of different colour similar to that of its 2D plot

Consider the functions ...
8
votes
2answers
160 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 ...
3
votes
1answer
192 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'...
4
votes
1answer
79 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
170 views

PlotStyle based on If condition

So in the If[evecs==Re[evecs], I want to then change the colour in PlotStyle of the ...
1
vote
1answer
94 views

What is the problem with the “|” character inside of strings?

When the "|" character appears inside of a string containing linear box syntax, SyntaxQ returns ...
0
votes
0answers
31 views

Join styled and normal string and keep formating [duplicate]

I have a styled and a normal string and I want to join them. However, it seems that the styled object doesn't have the structure of a string and so they cannot be joined. I can do it with Print but I ...
2
votes
1answer
52 views

Copy bolded with Style output to Word

I have an simple bolded expression and it's output, say Is there any way to keep the formatting that when making a copy of the output and pasting to word?
1
vote
1answer
78 views

Change `FrameStyle` defaults

This question discusses how to find out the defaults are for FrameStyle. How can these options be changed? For example, if we wanted ...
2
votes
2answers
105 views

NumberedItem but with letters

Is there a way to change the headings on NumberedItem style? Instead of it going 1. 2. 3. I am looking for it to go A. B. C. with the auto increment. I can't find a style that has headings as ...
2
votes
1answer
173 views

Multiple Rows in same Inset Frame

I'm sure this is an easy one, but I would like to know how to put multiple lines of text within the same frame in a graphic Inset. I can't seem to find any examples within the documentation and it ...
2
votes
1answer
319 views

Styling a ListLinePlot

Pretty new to mathematica and stack exchange, so feel free to explain it like i'm 5! Essentially, I have a (mostly) working ListLinePlot in Mathematica, but would like to change some things in the ...
6
votes
1answer
276 views

How to use a ColorData gradient along with other PlotStyle options in a ListPlot?

I want to use ColorData colors along with other manual options. Is that possible? ...
6
votes
1answer
117 views

Preserving changed Output style

Let's say I have a stylesheet with two slightly different "Output" and "Output2" styles. ...
1
vote
0answers
82 views

Changing the y-axis tick style of a RegionPlot

I have an inequality of the form $f(x,y) < 1$ and plot it with RegionPlot[f[x, y] < 1, {x, 0, 5}, {y, 10^-7, 10^-4}] The y-axis ticks are displayed as 0....
2
votes
1answer
94 views

Graph not displaying correctly

I am trying to visualize some basic multi-graphs. However, the visualization is not giving correct results. I am not sure if it is a bug or I am doing something wrong. ...
2
votes
1answer
66 views

Set the background of an variable specific item in a Grid

I have a Grid in which I want to modify the background of the minimum value of the last row. For that purpose, I have create a variable with the position of the minimum value of this row "...
6
votes
2answers
825 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 ...
3
votes
0answers
56 views

Number Formatting Functions Do Not Evaluate with ExportString [closed]

I need to export in a particular text file format and tried NumberForm, PaddedForm, ...
5
votes
1answer
355 views

Wrong font usage when exporting graphics with text

Bug persists through 12.0 When exporting graphics with annotation in PDF using Export, under some circumstances fonts are not inherited properly. I'll illustrate ...
7
votes
1answer
238 views

How to list all styles for current notebook?

How can I programmatically list the available cell styles for the current notebook? I am looking for the same list displayed in the Format → Style menu (which I know is not the exhaustive list of ...
5
votes
0answers
245 views

How to prevent formatting as Mathematica code in inline cells?

We can start a new inline cell using Insert → Typesetting → Start Inline Cell. This is often used to insert mathematical formulae in text cells. Instead, I want to use it to insert small bits of non-...
7
votes
0answers
162 views

How to change the style of part of a cell in 11.2?

In Mathematica 11.1 and earlier it was possible to select just part of the text in a cell, and apply a different style to it using Format → Style. For example, we could type "One two three four" in a ...
0
votes
2answers
74 views

Graphics from text left justified

I need to create a Graphics object from text but it needs to be left justified. I can do this for a single text string: ...

1 2
3
4 5
7