Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 77

Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.

2 votes
Accepted

Can I use a custom (Frame)Ticks specification to define the PlotRange?

I thought something like what @Mr Wizard suggested might work but it seems that PlotRange is called earlier in the evaluation sequence. You can however match the GridLines ok: niceTicks[min_, max_, n …
Mike Honeychurch's user avatar
7 votes
Accepted

"Thickness" doesn't work in Parametric3D

If you want different colours but the same thickness then you can set the thickness with BaseStyle ParametricPlot3D[{{t, 0, -t}, {0, t, 2 t}}, {t, 0, 100}, BaseStyle -> AbsoluteThickness[5], PlotSt …
Mike Honeychurch's user avatar
6 votes

Centering date labels over the year in a DateListPlot

Using ListLinePlot with a tick library seems most efficient for regular production plotting of data (with certain date range characteristics). Edit Ticks for the bottom plot. Same principle. …
Mike Honeychurch's user avatar
46 votes
4 answers
7k views

How can I make an X-Y scatter plot with histograms next to the X-Y axes?

I just saw a nice plot there: How could I implement that in Mathematica — by which I mean the plot structure, not so much the styling.
Mike Honeychurch's user avatar
27 votes
6 answers
3k views

How can I make a 2D line plot with a drop shadow under the line?

You often see plots styled like this (ignore the bar chart component): i.e. with a small drop shadow under the line. (I'm assuming Excel is being used to produce these plots). How could you make s …
Mike Honeychurch's user avatar
12 votes

How to change the axes' origin and direction?

I wrote some code for this a few years ago. Haven't looked at it in a long time but it may be useful. It is in the Wolfram library archive (that seems to have been all but abandoned by both users and …
Mike Honeychurch's user avatar
8 votes

Adding Lines to Sparklines (plots w/o frames, axes, etc.)

As an alternative why not use GridLines as per J.Ms comment. sparkline[data_, datemarker_] := DateListPlot[data, {1997}, AspectRatio -> 0.2, Axes -> False, Filling -> Bottom, FrameTicks -> {{ …
Mike Honeychurch's user avatar
3 votes

Non-linear scaled X axis in DateListPlot

An alternative is to plot the data over 3 separate time ranges and combine the 3 plots. Here is how to do it set out step by step. Firstly it looks like your y axis scale is logarithmic right? In that …
Mike Honeychurch's user avatar
4 votes

How to change the LabelStyle only for one axis?

I suspect this must be a duplicate but depending on what features you want to alter (just label, label and ticks etc) you might have to use combinations of AxesStyle and TickStyle and so on but here i …
Mike Honeychurch's user avatar
3 votes

Controlling ListPlot Line Colors

I just use "ColorList" ListPlot[Table[i*Range[0, 10], {i, 1, 5, 0.5}], Frame -> True, Joined -> True, PlotRange -> All, PlotStyle -> ColorData[3, "ColorList"]] You can add some interactivity …
Mike Honeychurch's user avatar
4 votes

Piechart-how to wrap the words

Wrapping labels in Pane often helps in charts: labels = Pane[#, ImageSize -> 80] & /@ {"Profit versus Objectives", "Profitability Level", "Payback Period", "Relative Sales", "Relatives Prof …
Mike Honeychurch's user avatar
2 votes

Color points in list plot based on whether they satisfy an equation

Alternatives methods for you to use have been posted but the reason your attempt fails is that ColorFunction requires your data to be joined. e.g versus:
Mike Honeychurch's user avatar
7 votes

How to add data to an existing plot?

If you wanted to only ever have one plot the two ways come to mind. One is similar to @bbgodfrey's method but incorporating some front end code to delete the previous plot. The other is to make the pl …
Mike Honeychurch's user avatar
14 votes
Accepted

Specifying the size of open circle PlotMarkers in ListPlot

PlotMarkers are rendered as insets to the graphics so you need to set a small image size in your graphics plot marker: ListPlot[myData, PlotRange -> {{-1, 101}, {2.9, 3.3}}, Joined -> True, Mesh -> …
Mike Honeychurch's user avatar
30 votes

How to insert a plot into another plot

...or do it dynamically so you can position the inset where you like it: DynamicModule[{pt = Scaled[{0.5, 0.5}]}, Plot[Sin[x], {x, 0, 2 Pi}, PlotRange -> All, Epilog -> {Dynamic[ Locator[ …
Mike Honeychurch's user avatar

1
2 3 4 5 6
15 30 50 per page