We changed our privacy policy. Read more.

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

Apply Style to the letters according to the specifications

Apply Style to the letters A, B , C and D according to the specifications listed below. The number represents the font size and the color represents the font color. (Hint: Use Apply.) Input: ...
2
votes
0answers
76 views

Realtime background blur

Is it possible to have partially transparent cells (attached or docked) with live background blur? Something like this: Here's what I've tried: ...
2
votes
0answers
56 views

What is the simplest way to get "Input" appearance in the legend?

I wish to get the complete "Input" appearance of the contents of the legend on my plot: the font, its style, and syntax highlighting should be the same as ...
11
votes
1answer
222 views

Mathematica 12.3.1 CapForm does not work with ContourStyle anymore?

Just upgraded to 12.3.1 from 12.1. In 12.3.1, ...
0
votes
0answers
52 views

view linebreak symbol

As you see in the above example, In[294] and In[295] looks just the same, but the outputs are different. The fact is that there is no linebreak symbol in In[294], but there is one linebreak symbol in ...
4
votes
2answers
120 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 ...
1
vote
0answers
39 views

Pie chart labels do not render properly

I am working on a project and this pie chart needs to have same-sized labels that emanate "radially" outward. There will be concentric charts outside this core with more information about ...
14
votes
3answers
850 views

How to make figures in a casual, old-fashioned style

I'm writing a math textbook and use Mathematica to make figures. However, like all modern software, Mathematica produces perfectly crisp mathematically accurate figures. Meanwhile, I feel that old-...
7
votes
2answers
179 views

Imposing breaks in contours in a ContourPlot without rasterization

In this question, we are asked to compute breaks in the contours of a ContourPlot so as to place contour labels (values) atop the colored boundaries rather than the ...
5
votes
1answer
149 views

How to manually create gaps for the contour lines?

I'm wondering if there is any way to manually create gaps for the contour lines so that the contour labels can be put in the middle of these gaps. I try to make contour labels in the style like the ...
2
votes
2answers
72 views

How to change the default color of the "joined" lines in BarChart function?

is there any way to change the default color of the joined lines in BarChart function? As the joined function turns on (i.e., Joined -> True), the joined lines are plotted automatically with the ...
2
votes
0answers
79 views

Making Static Buttons

Is it possible to get a button that remains still when clicked? That is, it does not show the temporary pressed frames This also happens when I set ...
3
votes
2answers
125 views

Centering a weirdly shaped grid

Consider the following grid ...
1
vote
1answer
82 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 ...
1
vote
0answers
36 views

Grid's automatic resizing

Imagine I have a dynamic opener that changes the number of rows. For example, ...
3
votes
0answers
82 views

Button changes in 12.3 [closed]

In the new 12.3 version I noticed a change in how buttons react to the Background option. For instance, take ...
9
votes
2answers
521 views

An odd Grid style

Consider the following grid n = 10; Grid[{{"Matrix", SpanFromLeft}, RandomInteger[n, n], RandomInteger[n, n]}, Frame -> All, Alignment -> Center] ...
1
vote
2answers
106 views

HatchFilling in Mathemathica fills the entire are under curve

The Hatchfilling command is failing for me, i want to fill the area under the curve with vertical lines. If any suggestions plz do share. Thankyou.
0
votes
0answers
84 views

RegionPlot3D problem with PlotStyle

Been having a problem with RegionPlot3D. Let's say I want to plot a cube like this ...
2
votes
0answers
30 views

Global LabelStyle option does not work with SetOptions

I want to set global options for a plot, so I used the SetOptions command. However, some of the options don't seem to be applied. More specifically, this is the ...
0
votes
0answers
34 views

Print[] text in the style of Message[]

I would like to imitate the aesthetic style of Message[] text, but using Print[], and customising the colour. The output I ...
1
vote
1answer
37 views

Add a style to a table in `Graphics[Point[{...}]]`

I want to create a graphic of a series of points. It's easy as long as I don't want to style the points: ...
0
votes
3answers
69 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
51 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? ...
6
votes
3answers
170 views

Change style of Joined line in BoxWhiskerChart

How do I change the style of just the joining line (e.g., to Red) in a chart such as this? ...
3
votes
1answer
146 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
131 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
628 views

PlotStyle like ocean waves?

I wonder how one can manipulate options like PlotStyle, Lighting, and Specularity to make ...
0
votes
1answer
87 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
154 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
135 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
62 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
48 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
55 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
43 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
397 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
639 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
45 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
172 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
98 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
53 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
202 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
848 views

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

I have the following code: ...
1
vote
2answers
79 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
53 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
77 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
2 3 4 5
7