Stack Exchange Network

Stack Exchange network consists of 174 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
121 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
42 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
235 views
8
votes
2answers
126 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
113 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'...
3
votes
1answer
64 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
80 views

PlotStyle based on If condition

So in the If[evecs==Re[evecs], I want to then change the colour in PlotStyle of the ...
0
votes
1answer
75 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
24 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
46 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
51 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
61 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
68 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
152 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 ...
2
votes
2answers
109 views

Extracting tube style from KnotData

How do I extract the tube style (including lighting, viewpoint, ...) from KnotData["Trefoil"] and apply it to a space curve, such as ...
6
votes
1answer
143 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
103 views

Preserving changed Output style

Let's say I have a stylesheet with two slightly different "Output" and "Output2" styles. ...
1
vote
0answers
57 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
80 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
57 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 "...
5
votes
2answers
303 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
46 views

Number Formatting Functions Do Not Evaluate with ExportString [closed]

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

Wrong font usage when exporting graphics with text

When exporting graphics with annotation in PDF using Export, under some circumstances fonts are not inherited properly. I'll illustrate on the example of fonts ...
7
votes
1answer
165 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
169 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
135 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
52 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: ...
5
votes
3answers
339 views

changing line style from solid to dashed after an intersection

I used this link: Plot that draws a dashed/solid curve depending on the y-value of the curve to help me start this. I have two lines. I want to change from solid to dashed after an intersection. The ...
5
votes
3answers
419 views

How do I adjust the thickness of all the FrameTicks? [duplicate]

I am very sorry if this is trivial, but I can not for the life of me adjust the thickness of all tick marks in Plots. Depending on the data to plot, either the top, bottom, top and bottom, or top and ...
3
votes
3answers
268 views

Color labels in Listplot

Bug introduced in 11.0 and fixed in 11.1 Given a ListPlot like this, for example: ...
3
votes
1answer
123 views

Changing Text cell color

What can I set so that whenever I create a text cell, everything I enter into the text cell, whether plain text or some mathematical notation (Ctrl+9 on the Macintosh) is in a particular color I would ...
2
votes
2answers
137 views

Change ListPlot marker style depending on coordinates

I have a set of data in an array; each element of the overall array is a list of the form $\{x, y, c\}$, where $c$ is a number representing a property of the data point $\{x, y\}$. I can plot these ...
1
vote
1answer
83 views

How to customize order of default plot styles?

I dislike the orange style as the second default plot style, and I would like to swap it with the fourth, which is red. Is there a relatively painless way of doing this?
2
votes
2answers
325 views

Using ColorData function in ListPlot for a third variable

I am trying plot data using a ColorData function to do a gradient of color from blue to red, I used "Rainbow" option, but ...
0
votes
0answers
48 views

Text Display doesn't save in version 11.1

I have the problem that my changes to the display style of cells doesn't save with the notebook. When I convert a cell to text-display and check before saving I can see that the style is set as text-...
4
votes
2answers
583 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: ...
6
votes
3answers
180 views

Styling points generated by table to have varying opacity?

I want the points generated by Table styled with increasing opacity. For example, let's say I have ListPlot[Table[n,{n,0,5}]]. ...
0
votes
1answer
74 views

Add better style to a dynamic question

I would like to obtain something similar to this: A user, has to answer the question selecting an answer from a popupmenu and he can check it. I wrote that: <...
3
votes
1answer
80 views

How to style a cell depending on CellTags?

Is there a way to create a style definition that reformats its background based on it's own tags? The following doesn't work: ...
2
votes
1answer
61 views

Additively applying EdgeStyle to a graph without resetting

w = {3, 4, 10, 2, 1}; g = Graph[{1 -> 2, 1 -> 3, 1 -> 4, 2 -> 3, 2 -> 4}, EdgeWeight -> w]; p = {1 -> 2, 1 -> 4}; Then I set their ...
3
votes
1answer
169 views

How to extract vertex/community colors from FindCommunityPlot

How can I extract the colors of the individual vertices/communities from a community graph plot? E.g. ...
2
votes
1answer
197 views

How to control size of self loops in Graph?

Is there a way to control the size of self loops when rendering a Graph? Example: ...
1
vote
1answer
153 views

Text loses its transparent background when opacity of graphics is reduced

By default Text has a transparent background. However, combined with other graphics with the opacity option, the text background turns to white and even overrides ...
1
vote
1answer
134 views

Command to set text color for current notebook

I'm looking for a command to insert at the start of my notebook that would change the text color for all text cells (style "Text") to have the color magenta. Maybe something that starts with ...
10
votes
3answers
735 views

How to create parabolic mesh?

In general how can we create a figure like this?
2
votes
3answers
94 views

Switch styles for special words

I want to create a Cloze test in Mathematica. I want to have text in a text cell and leave some words blank (to be filled in by students). With a button I want be able to switch between styles for ...
3
votes
2answers
95 views

Placing Graph vertexLabels into the vertexes

The DiscreteMarkovProcess defined in Mathematica can be passed to Graph to visualize it. It is exactly what I have done. ...
5
votes
1answer
63 views

How to use Style's FontVariations “Shadow” option value

FontVariations is an option for Style that has a "Shadow" option value. However, using <...
3
votes
3answers
255 views

PlotRange precision limit?

I'm trying to plot a set of points with 9 digits precision with a properly range labelling Y-axis, from a previous question I got two possible ways of doing this: 1st: suggested by @Carl Woll Using ...
1
vote
0answers
76 views

Oxford journal referencing style

I've been scanning through Mathematica documentation for a while but has been unable to find anything related to compiling a journal/ report based on Oxford style. Does Mathematica have this option ...