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
3answers
63 views

Coloured integers: Select outcome unexpected (part of a graph based problem using coloured vertex labels)

I use the following code output and need to retrieve the position of the part containing the blue-coloured integer 4 and the part itself (Edited to indicate both are needed). The displayed code looks ...
1
vote
1answer
49 views

color distinguish two smooth histograms

I want to color distinguish my two smooth histograms, I am not able to do so. I am writing the following but it is not working, Can you aid? ...
3
votes
1answer
122 views

Facing text in 3D graphics with full options

I'm seeking a refinement/extension of the excellent and very valuable solution appearing here. That solution indeed allows you to place text anywhere in a 3D graphics and then rotate it (by Euler ...
5
votes
3answers
116 views

Filling FaceGrids of Plot3D, with solid color?

I would like to find an easy way to show parts of the bounding box as solid planes. Given this Plot: ...
9
votes
2answers
588 views

PlotStyle like ocean waves?

I wonder how one can manipulate options like PlotStyle, Lighting, and Specularity to make ...
0
votes
1answer
77 views

What's the best way of setting global defaults for my Plots?

Obviously there are many ways to change the global settings, such as $PlotTheme or SetOptions[], but what I'm looking for is a ...
4
votes
2answers
146 views

How to get rid of Manipulate frame?

Does anyone know how to get rid of the grey box in Manipulate plots? I find that they look clunky and would look much cleaner without the box, but I am very new to the software so I don't know how I ...
4
votes
2answers
104 views

Stretchable parentheses in text labels in Graphics

I'm trying to annotate a plot with points of the form $\left(\frac{1}{2},\frac{1}{2}\right)$; my problem is that the parentheses don't stretch to cover the fraction. I think that what I want to do is ...
1
vote
1answer
46 views

Change the size of the ListDensityPlot

I want to put two ListDensityPlot together using "Style" command, but I don't how to control the size of the plot to make it the same height of the legend. The following the is code ...
3
votes
2answers
44 views

How to increase font without affecting grid spacing?

Here's an example of the problem, say you have a Grid with particular spacings that looks like this: ...
3
votes
1answer
66 views

Defining $f(x)=mx+b$ with $m,b$ separate versus `f[m_ ,b_ ,x_]:=mx+b`

Suppose I want to define a function $f(x)=mx+b$. And suppose I might want to change $m$ or $b$ later. Specifically, suppose I initially want $m=-2,b=10$, but maybe will change these values later Two ...
2
votes
2answers
46 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, ...
2
votes
0answers
37 views

Graph styling using `HighlightGraph`, `GraphHighlightStyle` and `VertexStyle`at the same time

I like the style when a graph is highlighted by HighlightGraph with parameter GraphHighlightStyle -> "Thick". But I ...
7
votes
1answer
337 views

Font style inconsistency on “number sign” (hashtag) and “at symbol”

Why number sign "#" (known as hashtag symbol on social media) or at sign "@" are not consistent with the ...
7
votes
2answers
626 views

Shortest way to make a checkerboard pattern

I'm looking for the shortest (in terms of characters) code snippet to make an n-square checkerboard. Here's my first try (comes in at 72 characters): ...
1
vote
1answer
43 views

Add (rainbow) colors to Ruleplot[]

I'm using Ruleplot[] to plot the rules of my cellular automota. I'm using multiple 'colors' (= number of states $k$ ) and I want to color them a different color than the default grayscale. The ...
1
vote
2answers
31 views

Clear Style to standard output expressions in the same cell

I would like to reset an expression in a Standar Output inside a Cell. For example, ...
3
votes
1answer
45 views

How to use two separate colours for two lines in a single 'Plot' within the 'With' command?

'''With[{k = {1, 10}}, Plot[k*x^2, {x, 0, 1}]]''' I want to use two separate colours for two k values. How to do that? Thanks in advance.
4
votes
2answers
117 views

How to change vertex color and vertex size at the same time of Graph

How to change color and size at the same time of some vertices of a graph? I am trying to do it more than an hour but nothing seems to work. I can do it either for color or for size but not both at ...
1
vote
2answers
86 views

How to pass arguments and options of a function when using Map?

Suppose I have a list in which I need to map a function to a list. Also suppose that function takes several arguments and even more options (such as styling). How would I pass all arguments and ...
0
votes
1answer
47 views

How to combine FontWeight option with Text[]?

Does anyone know how to combine the FontWeight option with Text[] items in Mathematica? It works fine with Style[], according the documentation. However when I feed this to Text[] (to then feed into ...
4
votes
1answer
153 views

Error band in the legend

I want to plot multiple data sets having error bands with legends such that the style of error band is also reflected in the corresponding legend. So for e.g. let's say I have the following two data ...
8
votes
3answers
840 views

How can I replicate the pseudo-3D style of this excel plot?

I have the following code: ...
1
vote
2answers
54 views

ColorFunction or PlotStyle Based on List

I am plotting the values of a continuous, but complicated function Energy[x_] via ListLinePlot. Another function ...
2
votes
3answers
73 views

Rewrite ListPlot using Graphics while perserving point color?

I have a lot of data points, and I have noticed that plotting using Graphics is usually much quicker than plotting with ListPlot. The problem is I am trying to color the data points based off some ...
3
votes
1answer
51 views

Plots dashed when I don't specify them to be dashed?

I was plotting a function (F here) with selected values, and just wanted the plot to be solid lines with the selected colors specified with PlotStyle: ...
1
vote
1answer
64 views

Merging (Joining) Formatted Row Labels to an Existing Styled and Formatted Grid

From a previous question and with the help of kglr a grid containing a data matrix with column labels was properly formatted and created Controlling label alignment/spacing in large grids Having this ...
1
vote
1answer
39 views

PlotStyle in ParametricPlot3D getting applied to all curves

Consider ...
0
votes
2answers
60 views

How to align TableForm entries at the decimal point and give it two-digit right-side floating point precision for monetary amounts?

My question essentially asks everything but I shall rephrase it to make certain it is well understood. 1. How to print all entries in rows of a column so that they align perfectly at the decimal ...
0
votes
3answers
61 views

How to use “Style” properly with “ListPointPlot3D”?

Using MMA 12.0 on a Windows 10 machine. I am trying to plot a list of points in a 3D plot. Each point has a different weight which I want to show using different point sizes. The points are also in ...
2
votes
0answers
35 views

Text in Grid cells not aligning correctly and how to style them all with single rule

This is the entire module that contains all code to output with a Print[Grid[data, rules]] statement. I have all cells arranged in stacked rows in a convenient <...
1
vote
0answers
22 views

Style options to make initialization cells appear like regular cells?

I find the discontinuous grey rectangles around those cells to be distracting. Any way I can make them look like regular cells?
4
votes
2answers
111 views

How to style the frame of the a button?

For certain Appearance options of Button you can control the Background, but how does one ...
13
votes
1answer
423 views

Control grain size of stipple shading

Mathematica 12.1 introduced a number of amazing shaders such as StippleShading. Is there a way to control the grain size of ...
9
votes
0answers
232 views

The dark side of Mathematica

I know that there are (at least one: Where can I find a dark stylesheet for mathematica?) previous posts about how to change the appearance of Mathematica, but they haven't been much of a help for me. ...
6
votes
2answers
118 views

Alternate Background color by row in a Grid in the presence of SpanFromAbove

I have some rows I want to put into a Grid: ...
3
votes
4answers
237 views

How to remove style from a styled number?

For example, I have a number with style like so: Style[1, Red, 20] How do I remove its style, so it returns to its inner value 1...
0
votes
2answers
79 views

Making the solutions of a ParametricNDSolveValue show up as different colours?

I am having a bit of trouble when it comes to plotting the solution of a system of non-linear ODE's. I write ...
1
vote
0answers
33 views

Is it possible to define custom sound style (or instrument)?

For example, you can specify the style or instrument as "Violin" in a SoundNote like: SoundNote[0, 1, "Violin"] Here ...
4
votes
1answer
75 views

Automatically generating and labelling controls in Manipulate

Consider the following code ...
2
votes
1answer
71 views

Inactivate Controls within Manipulate

Given a certain Control object (checkbox, for example) within a Manipulate environment, my goal is to define another control ...
2
votes
2answers
106 views

Scaling and Stretching a Mesh

I have a Voronoi mesh, given by ...
3
votes
1answer
71 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 ...
7
votes
1answer
332 views

Plotting: Change colour scheme and line thickness at the same time

Some stylistic attributes of plots are independent of colour, e.g. thickness, dashing, etc. I can make the lines thick in this plot without having to specify a separate style for each line: ...
4
votes
2answers
135 views

VoronoiMesh as a Graph

I want to draw the following graph using VoronoiMesh. For example, since ...
4
votes
2answers
257 views

Typesetting LaTeX in a text cell

I recently started trying to use stylesheets and different cell types to organize and explain my logic. Often I try to type equations into my text cells to explain what I'm doing, but this can be ...
14
votes
2answers
642 views

A Smooth and Round Voronoi Mesh

I want the edges of a VoronoiMesh to be smooth and round. I have found the following code from this answer ...
1
vote
1answer
46 views

Combining Labled with LabelStyle

I try to add a Style to my Labled plot. However, when I combine Labled with Label Style, I do not succeed. ...
9
votes
1answer
207 views

How to share stylesheets (with a preview)?

I have never understood how to easily generate an image preview for a given stylesheet. I also am unclear on how to easily share one. So I'm looking for an implementation or good 3rd party solution ...
3
votes
2answers
202 views

Selecting Edges and Corners in a Mesh

Consider the following VoronoiMesh obtained after a few iterations of Lloyd's relaxation algorithm ...

1
2 3 4 5
7