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

learn more… | top users | synonyms (12)

0
votes
2answers
63 views

Plotting the following function [closed]

I have to plot the following function and I also need to export it somehow, as an image or another kind of file (I need to use it in $\LaTeX$ after), Here is the function: \begin{equation} y(t)=656....
3
votes
2answers
166 views

ParametricPlot3D colorfunction for a specific region of an object

I have created a 3D parametric plot of an oblate spheroid, and I want to apply "TemperatureMap" as a colorfunction to its surface as a gradient in the Z direction. However, I only want to apply this ...
4
votes
1answer
45 views

MatrixPlot with only white and black but no brown

Thanks to MatrixPlot, I can observe some patterns in a matrix. However, when I use MatrixPlot : MatrixPlot[A, ColorFunction -> "Monochrome"] The matrix is ...
6
votes
1answer
102 views

DateListPlot failing on Inflation Adjusted TimeSeries

Ran across this (possible bug) today. Here's historical West Texas Intermediate oil prices: ...
27
votes
7answers
7k views

Changing the background color of the framed region of a plot

I frequently generate framed plots like this: Plot[Sin[x], {x, 0, 2 \[Pi]}, Frame -> True] Is there an easy way to change the background color of the framed ...
0
votes
1answer
63 views

A simple issue of ListLinePlot ticks with table function [duplicate]

I need to plot a discrete linear function III(i)=i, so ...
42
votes
4answers
6k 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 ...
3
votes
2answers
3k views

Define a color function using Piecewise

How can I define a ColorFunction for my ContourPlot using Piecewise? For example, after ...
1
vote
2answers
127 views

How to visualise (graphically) this optimization problem in Mathematica?

I have an optimization problem in the form max $(a-\bar{a})(b-\bar{b})$ subject to $a+b=1$ Here $\bar{a}$ and $\bar{b}$ are known values and both of them are >0. The solution is given by $a=(1+\...
1
vote
2answers
115 views

How to plot list of numbers in the complex plane? [closed]

This should have a trivial solution, but how do I plot a list of (complex) numbers in the complex plane? Or, put another way, why doesn't the code below work? I get the error "... is not a list of ...
1
vote
0answers
104 views

Horizontal histogram axis and ticks positioning [closed]

My data consists of two lists of numbers between -0.1 and 1. I would like to show them on two horizontal histograms, with a thickened x-axis. I have managed to make the first histogram look exactly ...
4
votes
2answers
1k views

Plot3D with a log scale only along the y-axis

I would like to ask how to make a 3D plot (maybe using Plot3D) with a logarithmic scale along the y-axis? For example: I have a function, $f(x) = 2(1 + a\,x^4)/x^2$, where $x$ varies from 0 to 20 ...
3
votes
2answers
101 views

A parametrization for $\frac{\sin(x)}{x}$ as a revolution surface around $y$ axis

I'm looking for a parametrization for $\frac{\sin(x)}{x}$ as a revolution surface arround the $y$ axis. I have tried $X(x,y)=\Big(\frac{\sin(y)\sin(x)}{x},x,\frac{\cos(y)\sin(x)}{x}\Big)$. ...
1
vote
1answer
100 views

Drawing a 3D Poisson Point Process with intensity $\lambda$

Can anyone suggest me a way of drawing a 3-dimensional Poisson Point Process (PPP) with intensity $\lambda$ in Mathematica. The points are located only in a half sphere. The 3-dimensional ball of ...
2
votes
1answer
66 views

Create an accumulator array from a function

I am making some images for a project about the hough transform line detection, I am showing the slope-intercept form , the normal form and their accumulator arrays to show the peaks. I am kind of new ...
23
votes
2answers
557 views

Symbolic derivatives are being calculated numerically

Just found the following while debugging a problem. Mathematica is calculating the derivative of IntegerPart[x] in some odd way: ...
1
vote
2answers
55 views

Importing data, then plotting ListPlot. What's the most efficient way to write a code?

It should be a boring question to ask for someone, but this is very basic need which I haven't resolved by myself. I know I can use MapThread and pure function to make it short and beautiful, but even ...
3
votes
2answers
119 views

Export Plot to PDF results very messy

When my nice looking DiscretePlot results are exported as PDF, they look very different from the original plots. For example, my original plot in Mathematica looks ...
4
votes
3answers
136 views

Speeding up ListPlot3D by Parallelization

I am about to use of ListPlot3D to have a plot of my list from plot3d list But my data are huge and for my machine it has been taken to much time. I have been ...
1
vote
1answer
51 views

Changing function along the z-axis in a 3D plot

I'm trying to figure out how to change the period over time (z-direction) in my 3D plot, which is a gyroid, in a way similar to a color thickness function, but I would like to do it continuosly on the ...
9
votes
1answer
237 views

Figure in animated GIF is oscillating as it rotates

I'm trying to draw a figure as shown below and make it rotate around the vertical axis (z-axis) automatically. This is how I generate the figure and make it rotate: ...
3
votes
3answers
206 views

How to add data to an existing plot?

Sometimes I need to plot functions that take quite a while to calculate--and sometimes I need to replot in light of what I see on the plot. Is it possible to add points to a plot one by one, as they ...
1
vote
0answers
30 views

Plotting multiple planes and calculating the volume of the area surrounded by the planes [duplicate]

I'm currently having trouble trying to plot multiple planes into Mathematica. The planes that I'm supposed to plot are x=0, y=0, x+y=1, x+z=0 and z=x^2+y^2. I've noticed that I can't plot planes if ...
11
votes
1answer
102 views

Speed up Dynamic for graphical interface

I am trying to create a user interface where I can click on certain points in a set of data and save them into a list that can be used later in my code. The problem is it is currently sluggish. Is ...
0
votes
1answer
64 views

how to plot the equation a^2+b^3=0 [duplicate]

how to plot the equation a^2+b^3=0 I need a in x-axis from -10 to 10 & corresponding b in y-axis pls replay Thanking you Kiran mukund
3
votes
3answers
216 views

Create graphic object using {x,y} points, and plot a contour over it

I am trying to create a graphics object (polygon built with {x,y} points)so I can plot a contour over it. I would like the coordinates of the contour plot and graphics object be matched (ie, {0,0} in ...
4
votes
1answer
88 views

Is it possible to user-define the percentages for lower/upper whisper/fence in BoxWhiskerChart of MMA? [duplicate]

BoxWhiskerChart draws a box-and-whisker summary of the distribution of the input data. I would like to show the 2nd, 25th, 50th (the median), 75th, and 98th percentages of the input data. Is ...
1
vote
0answers
51 views

Mapping Cosmic microwave background onto a sphere [duplicate]

I want to map image of Cosmic microwave background onto a sphere I tried this: ...
1
vote
0answers
81 views

ListPointPlot3D with coloured 4th Dimension from List [closed]

Similar to http://forums.wolfram.com/mathgroup/archive/2009/May/msg00133.html or Plot 4D data with color as 4th dimension, I would like to plot single points ...
0
votes
2answers
72 views

Using the plot function with the manipulate function

Can anyone explain why the below code does not produce a plot? ...
1
vote
0answers
79 views

BER vs SNR plot in Mathematica 10 [closed]

I have a bit-error-rate (BER) function and I am interested in plotting it against the signal-to-noise ratio (SNR). I need to use a plot function that is similar to the LogPlot but I need the Log ...
7
votes
2answers
130 views

ListSliceContourPlot3D with non-opaque stacked planes

I'd like to make a ListSliceContourPlot3D in Mathematica with using the stacked planes (x, y, or z) for the contours, but I'd like the planes to have an opacity <...
0
votes
2answers
182 views

How can I make a 3D Plot with NDSolve?

I have a system of coupled ODEs which I am solving using Mathematica. I am solving these using NDSolve: ...
0
votes
2answers
53 views

How do I fill the positive side of a graph? [duplicate]

I'm trying to plot $\sin(x)/x$ and fill the positive side. How do I achieve that? I know how to fill the entire axis. Here's what I have: ...
3
votes
1answer
74 views

plotting after solve does not display anything

I'm quite new to Mathematica language, I am trying to figure out where I am making mistakes in Plotting a specific function that depends to other variables: I want to plot ...
1
vote
1answer
49 views

How to write a function in the divide-and-conquer style [closed]

I'd like to vary a factor in a matrix calculation, so I have used Module to make it happened, but it doesn't work. Below is a code example. can someone tell me how ...
1
vote
2answers
74 views

Is it possible to draw a line on a MatrixPlot that would reflect density of row values? [closed]

I have a MatrixPlot with some data and I'd like to draw a vertical lines representing the "average" (density) of that data for each row. Something like this for ...
3
votes
0answers
120 views

SliceDensityPlot3D not found

Bug introduced in 10.2 or earlier and fixed in 10.3.0 I am using Mathematica student edition, version 10.2. When I use the command ...
1
vote
1answer
119 views

What is the fundamental difference between “PlotPoints” and “MaxRecursion”?

When making a plot, PlotPoints or MaxRecursion options are used to specify the accuracy or the extent of how detailed the result will be. Ff either of them do the similar job, I think ...
0
votes
2answers
71 views

Graph plotted in W|A but not Mathematica

This Mathematica code gives me a blank graph but if I run it on W|A I get a result. Why? ...
4
votes
1answer
55 views

TimelinePlot - Handling dates prior to Year Zero

Interested in Using TimelinePlot to help me understand/remember important time periods in Earth prehistory and history. Following an a simple example in the Documentation I create a TimelinePlot for ...
1
vote
1answer
64 views

How to add color to listplot

I have generated many points in a 2-dimensional space (x,y). How do I use color to represent different values of f(x,y) in ListPlot? Does ...
5
votes
2answers
255 views

Drawing circular patches around arbitrary points on a sphere

I am trying to draw circular patches of given angular radii around arbitrary points on a sphere. I am able to use, for example, ...
9
votes
1answer
156 views

Petrie polygon projection of a hypercube graph

I am trying to generate the Petrie polygon projection of the 8-cube in Mathematica, like this one: I tried using, for example, the HypercubeGraph function: ...
1
vote
1answer
47 views

Want to map over both the file data and the file names of the data source files

I have a lot of experimental datafiles I would like to plot first and check, if they can be used for further analysis or not. To avoid importing every single file I used FileNames and than mapping. ...
7
votes
1answer
147 views
0
votes
1answer
38 views

Error bars from lists

I have a list of data values, and I'd like to plot error bars showing the maxima and minima that each entry in my data list can take. The data and the maxima and minima are produced outside of ...
4
votes
1answer
212 views

geodesics' on torus

Is it possible to draw geodesics between the points in a path on a torus - toroidal surface? geodesics: generalization of the notion of a "straight line" to "curved spaces" ...
7
votes
1answer
202 views

Clustered heatmaps with dendrograms

In biology it's common to cluster both dimensions of a matrix, display it as a heatmap (MatrixPlot, ArrayPlot) and show ...