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.

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
41 votes
9 answers
6k views

Can I make a plot with gradient filling?

What is the best way to make a plot like that in Mathematica for plotting {x,y} data? …
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
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
24 votes
Accepted

Making a presentable BarChart

Answers to your 4 questions step by step to see how each of these changes the composite plot: 1. The image padding around the two images differs so you need to set a fixed value for each. With ImageP …
Mike Honeychurch's user avatar
23 votes
9 answers
4k views

How can I create a rectangular graphic with curved edges?

I want to make some button shaped graphics that would essentially be a rectangular shape with curved edges. In the example below I have used Polygon rather than Rectangle so as to take advantage of Ve …
Mike Honeychurch's user avatar
22 votes
1 answer
2k views

How to get a plot generated by R returned in an output cell?

It seems we'll never have built in two axis plots and list plots in Mathematica but you can make them in R. Needs["RLink`"] InstallR[]; REvaluate["{ x <- 1:5 y1 <- rnorm(5) y2 <- rnorm(5,20) par( …
Mike Honeychurch's user avatar
18 votes
3 answers
2k views

Why doesn't PlotMarker option None return no PlotMarkers?

After reading the PlotMarkers documentation it seems to be all or nothing. For example if you wanted markers on some of you lines the code below seems possible/probable given the documentation: ListP …
Mike Honeychurch's user avatar
15 votes
Accepted

Clustered and Grouped Bar Chart in Mathematica v8.0

Unfortunately I was not able to come back to this problem during the day. This is a bit of a hack created after some red wine induced insomnia but here goes: First a labelling function: ClearAll[lab …
Mike Honeychurch's user avatar
14 votes
Accepted

How to calculate a list without loop?

Accumulate@Array[b, {3}] (* {b[1], b[1] + b[2], b[1] + b[2] + b[3]} *) therefore: {a, b} = Transpose[list]; Transpose[{a, Accumulate[b]}] Also this will do the job: Rest@FoldList[{#2[[1]], #1[[2 …
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
14 votes
2 answers
2k views

What is the precedence of FrameStyle, FrameTicksStyle, and LabelStyle? How to have a LabelSt...

(I know I can use Style when entering frame labels but I am seeking an answer in terms of plotting options -- if one exists.) …
Mike Honeychurch's user avatar
13 votes
1 answer
368 views

Does InterpolationOrder cause conflicts with PlotMarkers in ListPlot?

Bug introduced in 7.0 or earlier and persisting through 13.2.0 or later My code: data = {MapIndexed[{First[#2], #1} &, Accumulate[RandomInteger[{-1, 1}, {54}]]], MapIndexed[{First[#2], #1} & …
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
12 votes
Accepted

Is it possible to induce Mathematica to chop off parts of Graphics objects that exist outsid...

If I have understood correctly then PlotRangeClipping -> True is what you need: Graphics[{Cyan, Disk[{0, 0}, 1.2]}, PlotRange -> {{-1, 1}, {-1, 1}}, Frame -> True, FrameLabel -> {"x", "y"}, PlotLab …
Mike Honeychurch's user avatar

1
2 3 4 5 6
15 30 50 per page