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
5
votes
3answers
472 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 ...
2
votes
1answer
84 views

Output short denominator as pre-factor

How can I make the output print like the input, with the short denominator written as a factor in front of the long expression? I was messing with styles earlier today to do something else, and at ...
2
votes
0answers
124 views

How to change the default stylesheet? [duplicate]

How to change $\textbf{default} $ output font color in Mathematica? for instance : how to set following style as default And how to set the default magnification to 200% instead 100%
3
votes
1answer
255 views

How to set the Arrowheads style in a figure with broken vertical axes

I am trying to combine three separated curves into a same figure. The codes are inspired by another post and answers here. Codes: ...
1
vote
0answers
41 views

Can I change the background of a deployed object?

I am deploying an object that displays some graphics. The background of the graphics is white, and I like it that way, but it clashes with the grey background of the wolfram cloud website. Follow ...
7
votes
1answer
1k 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 ...
-1
votes
1answer
114 views

How to graph the max and min values of a sheet?

Hi I just start working in Mathematica version 10.3.1 and I want to graph a sheet of data that I created in Excel (yeah i use Windows). The problem is i have so many data; 200 columns and 50 row of ...
0
votes
1answer
71 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}] ...
0
votes
0answers
35 views

How to get information about DefaultStyle of axes, frame, colorfunction, etc

How can I find out the DefaultStyle of Axes, Frames, ...
2
votes
2answers
386 views

Change Font in Grid Header

How can I style headers in a grid to be in Arial, 20pt? g = Plot[x^2, {x, 0, 2}]; headers={"A", "B", "C"}; Grid[Prepend[{{g, g, g}}, headers]] (I decided to post ...
2
votes
3answers
2k 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 ...
4
votes
2answers
127 views

How to find the background color in Placeholder

I would like to know how to find the background color used in Placeholder[abc]. It is some kind of Yellowish-Pinkish, I think. There is also a ...
5
votes
3answers
254 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 ...
1
vote
1answer
88 views

Vertical alignment of a cell used as value for CellFrameLabel

Consider that label, used as value for CellFrameLabel: ...
5
votes
1answer
134 views

Updating styles which are based on styles changed in private stylesheet

Intro Styles can inherit from other styles: base one style on another? And for example WolframAlphaLong is inheriting from ...
44
votes
4answers
8k views

How to change the default ColorData used in Mathematica's Plot?

This question leads on from the recent question What are the standard colors for plots in Mathematica? There it was determined that the default color palette used by ...
7
votes
1answer
121 views

How to control style of GeoScaleBar?

I'm plotting the GeoScaleBar over satellite image and wish it to be white but cannot find an option which controls its styling: ...
4
votes
1answer
78 views

Choosing specific font variants

Many fonts come with several variants that can be accessed from most OS X applications. Here's an example showing several variants of the Latin Modern Roman font. (These variants in the screenshot ...
15
votes
6answers
482 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 ...
9
votes
1answer
196 views

PlotMarkers shadows the settings by Style

The code below gives color-varying points with explicit Style wrappers: ...
4
votes
0answers
761 views

How to make a flowchart? [closed]

I'd like to make a flow chart in similar to this: I think it's more of a layout and stylistic question for a graph - how to style a graph with labeled edges and vertices so that it looks like a chart?...
11
votes
2answers
588 views

What are the default Frame / Axes styles and how can I find them?

I'm sure this must have been asked before but I am unable to find anything here on SE or on Google in general. I simply want to know what the default color and thickness are for a ...
1
vote
2answers
57 views

Style changes for a moment when parameters change [closed]

I've been looking for a solution to this problem for other applications too, for some time, but haven't come up with a solution that does not involve Animate or ...
5
votes
1answer
434 views

hotkey to mark the current cell and make it a text cell

In order to write to a Text cell, you usually just start typing. Then you find out that you are writing in an Input cell. Then you want to convert the current cell to a Text cell. In order to to this ...
17
votes
3answers
776 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, ...
4
votes
1answer
126 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
520 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 ...
2
votes
1answer
1k views

Making single letters non-italic in Graphics/Text/Style objects

Suppose that I use Graphics, Text, and Style to type one letter in the subscript of a letter ...
4
votes
0answers
93 views

How to insert expression matching the format?

I would like programmatically to insert/write an expression at the current insertion point, but matching the current format, such as font size and style, so that it looks like the user typed it. ...
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 ...
2
votes
0answers
84 views

How can I add shortcut to StyleBox [duplicate]

How can I add shortcut to StyleBox?. We can Ctrl+B to overstrike font. i.e. strong or **strike**. Can I add one new shortcut ...
1
vote
1answer
163 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: ...
-2
votes
1answer
123 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 ...
4
votes
1answer
56 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
166 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 ...
4
votes
1answer
285 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 ...
21
votes
1answer
2k views

How to strip all formatting from a string and convert it to plain text?

The documentation on String states: But if I try to perform some manipulations on this string, for example, take 2 words from the left, I get some shards of ...
15
votes
1answer
495 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 ...
12
votes
1answer
650 views

How to make PlotMarkers constructed from Graphics track plot style?

In this plot the Disk[] markers are not colored according to the style of the line to which they belong: ...
13
votes
1answer
174 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
262 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
210 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 ...
4
votes
1answer
153 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
186 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
726 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
334 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
2answers
452 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 ...