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
11 votes
1 answer
2k views

Customize ColorData function

I am trying to customize the color data ColorData["AvocadoColors"] I want to make color data function of the gradient starting from the green to the white ...
Saesun Kim's user avatar
  • 1,810
10 votes
1 answer
4k views

How to change frame size, while maintaining ImageSize? [duplicate]

I'm trying to come up with a MWE: anyData = Range[10]; Column@Table[ListLinePlot[n*anyData, Frame -> True], {n, {-1, 1}}] The lateral size of the plotframe ...
Kay's user avatar
  • 1,035
9 votes
3 answers
534 views

Small circles at mesh nodes

How to show the (16 X 4) mesh intersection points by a tiny red dots? ParametricPlot[v { Cos[u], Sin[u]}, {u, 0, 2 Pi},{v,1,3}, Mesh-> {15,3} ]
Narasimham's user avatar
  • 3,160
9 votes
2 answers
198 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 ...
M.R.'s user avatar
  • 31.5k
8 votes
0 answers
97 views

How to trace the stylesheet directives responsible for the selected text's appearance?

By way of example, in a typical Mathematica interactive session, one sees text content as shown below: Three different text styles can be seen in this figure: input, output, and the style for the <...
kjo's user avatar
  • 11.7k
8 votes
3 answers
582 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 ...
Berg's user avatar
  • 1,059
8 votes
1 answer
281 views

Style in Graphics or Graphics3D?

To generate a yellow sphere, I usually write the code without using Style: Graphics3D[{Yellow, Sphere[]}] However, ...
Joo-Haeng Lee's user avatar
7 votes
1 answer
331 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 ...
Szabolcs's user avatar
  • 235k
7 votes
2 answers
720 views

Limited styles in the Monochrome plot theme

It seems like PlotTheme -> "Monochrome" produces up to 8 different dashing styles for Plot. I know one way to overcome this ...
MathX's user avatar
  • 1,644
6 votes
1 answer
199 views

All the group formatting available in Mathematica

I was wondering how many pre-defined group formatting style there is in Mathematica. From Format -> Style, one see that we can go from ...
Patrick.B's user avatar
  • 1,509
6 votes
3 answers
209 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}]]. ...
user5's user avatar
  • 63
6 votes
1 answer
194 views

Grid Centring around Divider

Consider the following Grid ...
sam wolfe's user avatar
  • 4,693
6 votes
1 answer
686 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 ...
ercegovac's user avatar
  • 1,017
5 votes
1 answer
109 views

Understanding Conflict Between Data Wrappers, Graphics Directives, and Options for Plots

I have two related questions. First, I am trying to find out what ways I can change a single point in a plot using data wrappers that are not overwritten by other plot options (like ...
Just Some Old Man's user avatar
5 votes
3 answers
728 views

Using different style on segments of a plot [duplicate]

Is it possible to plot a function with two different colors? To illustrate, let's have: Plot[Sin[x], {x, 0, 2 π}] which plots a curve. And I would like it to be ...
atapaka's user avatar
  • 3,954
5 votes
3 answers
1k 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 ...
SarahM's user avatar
  • 65
5 votes
1 answer
151 views

Is it possible to get current thickness for every Line, Polygon, Circle object in a plot?

When exporting Mathematica graphics to raster formats with high resolution the common problem is that thickness for such objects as Line, ...
Alexey Popkov's user avatar
5 votes
1 answer
316 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. ...
M. Heuer's user avatar
  • 205
5 votes
1 answer
471 views

Shortcuts for Indentation in Text Cells?

Marking a cell's bracket and then using Alt-7 I can make it a Text cell using the formatting set forth in Default.nb or in a modification of it stored with the notebook itself (so called "private ...
Adalbert Hanßen's user avatar
5 votes
2 answers
187 views

Color that *imposes* transparency

Suppose I have a plot with a transparent background and I want to place a letter right on top of a curve. For clarity, I'd like to add an outline around the letter. The image below shows a white ...
Wynne's user avatar
  • 1,526
5 votes
3 answers
555 views

Histogram with the smaller bar in front

I am trying to visualise multiple data sets in one histogram. When using one or two datasets, the automatic transparency of the bars keeps everything relatively easy to see. When going to three or ...
Maarten's user avatar
  • 53
4 votes
1 answer
343 views

Cannot normally underline slash characters and hyperlinks

Really, if you evaluate Style["/", Underlined] or type / and set the font of the character to be underlined through Format|Font..., you get $/$, not $\underline{/}$....
Dan Oak's user avatar
  • 638
4 votes
0 answers
94 views

Number Formatting Functions Do Not Evaluate with ExportString [closed]

I need to export in a particular text file format and tried NumberForm, PaddedForm, ...
Edmund's user avatar
  • 42.3k
4 votes
1 answer
172 views

Is the use of StringTemplate with a styled string documented behavior?

I was pleasantly surprised to find out that StringTemplate appears to work with styled (formatted) strings, with the style of the slots applied to the inserted ...
Mr.Wizard's user avatar
  • 272k
4 votes
1 answer
87 views

Automatically generating and labelling controls in Manipulate

Consider the following code ...
sam wolfe's user avatar
  • 4,693
4 votes
0 answers
123 views

Are there any rules about style inheritance in Mathematica?

I can style every part of an UI separately. But it is not handy and it would be nice to have list of Heads which are not inheriting at all or even partly. Are there any rules about inheritance? <...
Kuba's user avatar
  • 137k
4 votes
2 answers
435 views

How do I add into a text cell a reference to a numbered function?

I have a document with lots of numbered equations in their own cells (which I numbered through Format->Style->DisplayFormulaNumbered). I also have lots of ...
Richard Burke-Ward's user avatar
4 votes
2 answers
443 views

Labeling vertices by number in Graph: Getting text to display at the right size

Minor aesthetic question here. I was playing around with Graph's and decided to render a cute-looking family of directed graphs, with the vertices being the number ...
DumpsterDoofus's user avatar
4 votes
1 answer
4k views

How to change the default font for all cells in all notebooks [duplicate]

I am new to Mathematica. Currently I am using Mathematica 10 on Mac Yosemite. I have tried: Edit the default.nb and core.nb ...
Lelouch's user avatar
  • 533
3 votes
2 answers
78 views

Can a Style inherit CellMargins depending how it is grouped?

This is a cross-post from https://community.wolfram.com/groups/-/m/t/2107710?p_p_auth=JoAd1Xpi and is similar to How to inherit indentation in cell groups? I'd like to have the Styles Item, Subitem, ...
Craig Carter's user avatar
  • 4,425
3 votes
1 answer
111 views

Stylesheet control of system panel font colors?

I'm trying to make a custom dark mode stylesheet, and I started with Kuba's great DarkPackage. The issue is how to deal with text in panels (you can barely see the white-on-white text, unless you ...
M.R.'s user avatar
  • 31.5k
3 votes
3 answers
140 views

TemperatureMap Background of Dataset Cells based on their Value

I have a dataset with normal numbers (either integers or real) and I would like to visualize the dataset in a table where, for every row a colormap shows the ranking of the numbers from Min (blue) to ...
Kai's user avatar
  • 129
3 votes
1 answer
132 views

Questions about InlineCell vs InlineFormula vs DisplayFormula cells

I'm having trouble with typesetting, and can't get these questions straight in my head. What is the difference between "InlineCell" and ...
B flat's user avatar
  • 5,523
2 votes
1 answer
457 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: ...
Szabolcs's user avatar
  • 235k
2 votes
3 answers
3k views

Batman Equation

I am trying to plot out the batman symbol in mathematica. I have the basic equations but I am having some difficulty with plottingstyles and connecting the two ears with a straight line. I was ...
user3709772's user avatar
2 votes
2 answers
1k views

How to enter chemical equations?

When I want to take chemistry notes and write down a formula such as H_2O or C_2H_5OH it enters "Math mode" which changes the font size and italicizes the letters. Is there an easy way to properly ...
vaskozl's user avatar
  • 31
2 votes
1 answer
267 views

Coloring multi-edges in graphs

I have the following edgelist and colors: ...
NPHA's user avatar
  • 135
2 votes
1 answer
128 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: ...
vladpopovcev's user avatar
2 votes
1 answer
204 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: ...
Jordan MacLachlan's user avatar
1 vote
2 answers
62 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 ...
M. H.'s user avatar
  • 39
1 vote
3 answers
478 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 ...
Andrew Cheong's user avatar
1 vote
1 answer
479 views

Writing text inside Venn Diagrams

I found this question which is extremely cool and amazing How to plot Venn diagrams with Mathematica? which also helped me in plotting and creating Venn Diagrams. But there is something that is ...
Enrico M.'s user avatar
  • 961
1 vote
1 answer
106 views

Changing Slider Style [duplicate]

Is there any option to customize the Slider tracker to an image or a Graphics object? What about simply changing its colour? For ...
sam wolfe's user avatar
  • 4,693
1 vote
1 answer
121 views

Dynamic Delimiter in Manipulate

Consider the following ...
sam wolfe's user avatar
  • 4,693
1 vote
1 answer
112 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 ...
Alexey Popkov's user avatar
0 votes
2 answers
518 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 ...
M. H.'s user avatar
  • 39
0 votes
1 answer
111 views

How to assign arbitrary values to frameaxis of a ListDensityPlot

Maybe the question is stupid or already has been asked, however, I cannot find an answer while searching Q&A. Assume you have a Table[x*y,{x,1,4},{y,1,4}] ...
Kay's user avatar
  • 1,035
-1 votes
1 answer
86 views

How to apply the style of one set of data to another set of data? [closed]

I have a data set that must be plotted using BarChart, and I would like to format the color based on another dataset's style. For Example: ...
Nothingtoseehere's user avatar

1
2