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 4296

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

8 votes
Accepted

Histogram: Bars not stacked, not overlapped, but side by side?

Edit: Assuming the data you provided is called data I use Last /@ (HistogramList[#, {0, 1.2, 0.1}] & /@ data) // Transpose // BarChart to get the following: You might also want to look into …
einbandi's user avatar
  • 4,064
5 votes
Accepted

Plotting a 3D sphere i.e. how to vizualise the spanned volume $\int_0^{2\pi}\int_0^{\pi} d\t...

Here's a very basic demonstration: Manipulate[ ParametricPlot3D[{Sin[theta] Cos[phi], Sin[theta] Sin[phi], Cos[theta]}, {theta, 0, t}, {phi, 0, p}, PlotRange -> {{-1, 1}, {-1, 1}, {-1, 1}}], …
einbandi's user avatar
  • 4,064
3 votes
Accepted

Plotting a graph with conditions

Since there still seems to be no answer to the second part about adding the partial sums to the plot, here you go: partialSum[n_, x_] := Sum[Sin[k x]/k, {k, n}] Plot[{ Piecewise[{{(Pi - x)/2, …
einbandi's user avatar
  • 4,064
3 votes

Scaling the x-axis in ListLogLogPlot[] or ListLogPlot[] in lieu of DataRange

In v8.0 on Windows 7, DataRange seems to do what it's supposed to: data = Table[1/x, {x, 1, 100, .1}]; ListLogLogPlot[data, Frame -> True, ImageSize -> 500, DataRange -> {1, 5000}, PlotRange -> { …
einbandi's user avatar
  • 4,064
7 votes

Force size in pixels of plot area excluding axes and labels

Say you have a large array like: array = Table[RandomReal[], {i, 200}, {j, 200}]; To align the cells of arraywith pixels, use the PixelConstrainedoption: ArrayPlot[array, PixelConstrained -> True] …
einbandi's user avatar
  • 4,064
11 votes

Composing an image with a plot

EDIT: (see below for old version) New version with alpha channels, the option to lock the graph at the ball, adjustable player position and a button to remove player and basket: setalpha[im_] := M …
einbandi's user avatar
  • 4,064
13 votes
4 answers
10k views

How to create an inverse pole figure color map?

To interpret electron backscatter diffraction (EBSD) results, inverse pole figures are used. A three dimensional space of directions ([100], [110] and [111] for those who know about crystallography) i …
einbandi's user avatar
  • 4,064
11 votes
Accepted

How to create an inverse pole figure color map?

Edit: I could simplify the code even more by accessing the 3D cooridnates directly, instead of using the inverse projection. Disclaimer As I finally understand what's going on, I thought I'd prese …
einbandi's user avatar
  • 4,064