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
6
votes
5answers
612 views

Colouring points in a Delaunay Mesh by the number of nearest neighbours

I apologise if this is a repeated question, but I've searched for a while and can't find anything. I'm doing some molecular dynamics simulations using Mathematica 10, and I've placed a ...
4
votes
1answer
129 views

How to use an ExpressionCell to display e.g. an Input cell inside a generated output?

It's not that I can't live with that but I don't understand why e.g: ExpressionCell[ Defer @ Style["string", Red], "Input"] is not showing quote marks? This ...
3
votes
2answers
539 views

ListPlot: Adding Line with Epilog to automatic GridLines - adjusting Style

I want to draw ListPlots with automatic GridLines and add a custom line. My solution is to use the Epilog option. To make sure that the automatic GridLines and my custom line have the same style, I ...
9
votes
3answers
501 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} ]
9
votes
2answers
449 views

Styling polar axes in PolarPlot

You can style the axes in Plot with AxesStyle. For example, the following code makes the axes red. ...
14
votes
2answers
312 views

What is the difference between Inherited and (Inherited + 0)

Let's create a stylesheet: ...
15
votes
3answers
274 views

How to specify custom graph styles for GraphStyle?

There is a way to specify custom themes for plots (Is it possible to define a new PlotTheme?), but themes do not apply to Graph objects, not even to ...
4
votes
1answer
124 views

How to have Tooltip resize with Notebook magnification?

How do you make a Tooltip label expression change magnification when the Notebook magnification changes. The expr of ...
3
votes
1answer
2k 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 ...
4
votes
1answer
99 views

DisplayFormulaNumbered

I'm using Mathematica 10.3 and have a question regarding the DisplayFormulaNumbered Style: is there a way to tell Mathematica to number the formulas not only 1,2,3... but 1.1, 1.2, 1.3 when it has to ...
1
vote
1answer
84 views

How to make the background lines in PlotTheme -> {“Detailed”} more visible?

The following code ListLogLogPlot[{1}, PlotTheme -> {"Detailed"}] adds thin dashed gray lines to the background. Their visibility is OK in the notebook but ...
1
vote
1answer
164 views

Introducing dashing to distinguish curves in a multiple curve plot

To combine in 1 plot data with 2 scales, I use the following solution: ...
17
votes
3answers
788 views

Highlighting pattern strings in a large text

I would like to apply Style to strings that are matched, for example, with one or more specified patterns or regular expressions, a string or a list of both, ...
3
votes
3answers
2k views

FillingStyle and Opacity won't work together in Mathematica

I try to plot some data in Mathematica using the ListLinePlot[]. Unfortunately the plot option ColorFunction, ...
0
votes
3answers
632 views

Place cells side-by-side

Is there any way to place plots/cells side-by-side? I know how to put plots in arrays and grids. The motivation for putting cells side by side is that I want the equations for the plots to be above ...
2
votes
1answer
255 views

BarChart EdgeForm not producing correct colors

EdgeForm is not producing correct colors for the borders of my bars. My code: ...
4
votes
1answer
60 views

Make Rasterize/Export use Notebook-specific options?

Sometimes I need Notebook-specific options such as Background color or FontProperties -> "ScreenResolution". (Ref: How to ...
3
votes
2answers
168 views

How create hyperlink with number of an automatically numbered cell?

In my stylesheet I have a particular style of cell, Exercise, that has a corresponding counter object. In a notebook with that stylesheet, there are several Exercise cells in each of which I've ...
-2
votes
1answer
125 views

How to make a ProgressIndicator span inside a grid?

Setting ImageSize -> Full in the ProgressIndicator makes the indicator extend to fill up the width of the notebook. But I have one inside a grid, so how can I ...
3
votes
2answers
229 views

Multiple colors on a single graph edge?

Is there any way to put two colors on one single graph edge? For example, I want to highlight two cyclic paths (red and blue). But, if I put the two colorings into one image, it does not work as I ...
4
votes
1answer
289 views

Typesetting in Mathematica

Are there typesetting environments/boxes or something similar in Mathematica? I want to write some documentation for a notebook using text cells and I would like to have a brief description of my ...
6
votes
3answers
257 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 ...
15
votes
1answer
505 views

Accessing figure style (oldstyle or lining) of TrueType fonts

Most professional fonts come with at least two figure styles: old style (or text) figures and lining figures. In plots and most other figures I prefer to use lining figures. This is no problem with ...
13
votes
1answer
175 views

How to retrieve current FaceForm?

The current colour in a Graphics object can be retrieved using CurrentValue["Color"] for use in Dynamic stuff. Example: ...
2
votes
0answers
264 views

Notebook style which imitates Latex paper [closed]

I have not experimented with Notebook styles, but from what I understand they can be customized to a wide range of styles. Is there a style which looks like a typical paper written in TeX/LaTeX? My ...
2
votes
1answer
219 views

Multiple styles in ExclusionsStyle [closed]

In my plot I have used an exclusion at the asymptote like this: Exclusions -> {x == -1}, ExclusionsStyle -> Dashing[Medium] The question is, how can I ...
64
votes
3answers
5k views

Python-style plots in Mathematica

I love making plots in Mathematica. And I love to spend a lot of time making high-quality plots that maximize readability and aesthetics. For most cases, Mathematica can make very beautiful images, ...
13
votes
1answer
472 views

Graph: Coloring parallel edges individually

CODE: Graph[{Style[0 -> 1, Red], Style[0 -> 1, {Blue, Dashed}]}] This Mathematica code will make both lines solid Red, since they belong to the same two ...
4
votes
1answer
155 views

How can I import html fragments as formatted cells?

I see that there is limited support for "HTMLFragment" in Export, but I figured with all the work that went into porting Mathematica into the Wolfram Cloud there should be a way to Import "...
3
votes
1answer
192 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{/}$....
2
votes
1answer
141 views

Changed appearance of Quantity expressions in v10.1.0

After installing Mathematica v10.1.0 (in Windows 8.1 x64), I noticed a change in appearance of Quantity expressions. For example under Mathematica v10.1.0: while ...
3
votes
1answer
744 views

Customizing output of Spectrogram[], units of Periodogram[]?

I am analyzing spectrum of recorded sound. For that purpose I am using Mathematica's built in functions Spectrogram[] and Periodogram[]. I have three questions regarding those: What is the way to set ...
1
vote
1answer
341 views

Button for expanding a cell? [duplicate]

How can I create a button which sits next to the cell, like so: http://i.imgur.com/ZFkgn5q.jpg When you click the button it expands the cell, like this (note the cells on the right): http://i.imgur....
1
vote
0answers
67 views

Mysterious message posted when I move the cursor in a custom function

I wrote a function called CPlot for complex plotting which is supposed to act a lot like Plot in its input format, but ever ...
1
vote
2answers
466 views

How change style of InputField in a Manipulate?

Is it possible to specify a style, e.g., font size, for InputField type controls inside a Manipulate and if so, how? For ...
1
vote
3answers
123 views

EdgeRenderingFunction For 2 Vertices in a Loop

Assume there is a set of rules: set = {"A" -> "B", "B" -> "A", "B" -> "C", "C" -> "D", "D" -> "A", "C" -> "C"}; which we want to graph using <...
4
votes
1answer
127 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 ...
4
votes
0answers
110 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? <...
2
votes
2answers
95 views

How to programatically set options for a selected word?

I want to create a palette with buttons and have it apply to the selected word. No matter what combination I try it always applies it to the entire cell. Imagine that in the sentence: ...
6
votes
2answers
859 views

Awful styling in MMA10's Plot

Switching to MMA10, I'd want to produce a plot using this code: ...
4
votes
2answers
199 views

Headings, subheadings, text cells etc and Alt+n

This is a minor point but annoying. I have just upgraded to version 10.0.2.0 and discovered that you must select a bracket before doing Alt+1, or Alt +7 to make a cell a heading or text cell. This was ...
10
votes
1answer
1k views

How to print $\odot$ without it being cropped? (\[CircleDot] symbol)

Preamble: In some applications (astronomy, cosmology, etc), it is useful to measure things in solar quantities, say distances in $R_\odot$ or masses in $M_\odot$, and so on. Now and then I see ...
23
votes
1answer
926 views

How to write Morse code into Plot Dashing?

How can we define a dashing pattern in a plot such that it reads arbitrary text in Morse code? For instance Graphics[{DotDashed, Line[{{0, 0}, {5, 0}}]}] ...
5
votes
1answer
191 views

How to edit stylesheet to change automatic numbering of Reference type to numeric, not alphabetic?

I applied the stylesheet JournalArticle to a notebook. When I use the Reference cell style there, it automatically inserts "A.", "B.", etc., to number the cells. What exactly should one do (...
2
votes
2answers
82 views

How do I extract the value of a 'Style'?

I have a Style displaying an underlying Real value. For example I might have ...
4
votes
3answers
170 views

How we can make a simple pallette to change the Font characteristics?

I am trying to make a new Palette with some buttons on it called, for example, "Arial", "Bookman" etc. plus some other buttons specifying sizes(12,14,..) and some prefered Colors for the fonts. I ...
3
votes
2answers
101 views

Simple plot control

Absolute newbie question: Plot[2x-1,{x,-4,4},GridLines->{Range[-4,4],Range[-8,8]}] works about as expected, except that (a) I would like the tick ...
1
vote
0answers
139 views

Fill histogram with pattern [duplicate]

Is there a way to fill a histogram with a pattern such as hatched lines? I'm imagining something along the lines of ...
2
votes
2answers
261 views

Controlling PointSize in a RegionPlot

I have a "named" point in Mathematica 10 and am plotting it like this using RegionPlot: ...
15
votes
6answers
484 views

Different results between V9 and V10 when using Style with Listplot

Consider this example: data = Table[{x, x^2}, {x, -2, 2, 0.1}]; ListPlot[Style[{#1, #2}, PointSize[Abs[#2]/50], Hue[#2]] & @@@ data] the results from V9 and ...