# Questions tagged [plotting]

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

10,125 questions
Filter by
Sorted by
Tagged with
89 views

### Data plotting: problem with coloring the plots

I have a data to plot in the form of {x,y,f(x,y)}. Essentially, I have two curves (to be precise, surfaces). I want different colors for each surface. But I'm failing to do so. Here is my datatoplot: ...
35 views

### Customizing contour labels in ContourPlot

I have a contour plot. I want to make some changes in the contour labels. I want them to place along each contour in white color. Here is my code ...
52 views

### Color scheme problem

I have a problem in the color scheme in a 2D spectra. After a lot of calculations, i can generate a picture like this in the last part using this instructions ...
48 views

### Problem with a plot

I have a function which has a dependency on x alone. I wanted to find the roots of this equation, so I tried plotting the equation, but I am getting the error "integer expected at position 2 in Surd[0....
98 views

### Mark region of a plot by a rectangle

I want to make a series of plots, each of which will show a zoomed on region of the plot before. So that everything is easy to understand, I want to mark the region which will be seen in the next ...
48 views

### Problem with MaTeX PlotLabel

I'm trying to label a plot as follows: ...
67 views

### ListDensityPlot3D not working with spherical data

I'm trying to make a density plot of some data on a solid sphere, but I couldn't get ListDensityPlot3D to plot anything. I think there's something I'm missing, as I ...
381 views

### Plot Taylor–Couette flow ilustratation plot

I am trying to plot a set up for a classic problem of physics of fluids using Mathematica, see Wikipedia for a reference. The problem is the movement of two concentric cylinders with two radii and ...
119 views

### Plotting a rectangle with a heat map

Consider the two table set below t1= {0.44, 0.62, 0.77, 0.87, 0.93, 0.96, 0.98, 1} t2= {0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25, 0.25} how can I create a plot ...
66 views

### Plotting different parts of different lists of data

Suppose I have the following data: x = Range; y1 = N[RandomInteger[100, 15]/100]; y2 = N[RandomInteger[100, 15]/100]; y3 = N[RandomInteger[100, 15]/100]; ...
100 views

### Plotting step functions with filling option

Try plotting several step functions and filling the space between the first function and the axis. Unwanted vertical lines appear. Making things worse, these vertical lines are colored in the color of ...
32 views

### Plotting a specific row and a subset of this row's columns

I have the following data. Now, I not only wish to plot a specific row of the data, but also a subset of the columns in the chosen row. I can work out the first part, but plotting a specific part of ...
936 views

### What problems does SciDraw still solve?

I came across SciDraw (link) that can be used for preparing scientific figures with Mathematica. It seems the latest version was in 2015 (link). What are the main problems that SciDraw still solves? ...
50 views

### Sampling Standard Deviation

Here I found a formula for the sample standard deviation: http://mathworld.wolfram.com/StandardDeviationDistribution.html Here is my simulation: ...
44 views

### How can I change the gap between a plot's frame and its legends?

How can I change the gap (marked by the double arrow below) between a frame and a plot legend? ...
82 views

### Plotting a circle that can move up and down the y-axis

How can I create a circle for the equation $\qquad x^2+(y-a)^2=9$ where $a$ is a parameter. I want to plot this curve with a slider $(a)$ in Cartesian coordinates (better with axes). If possible, ...
660 views

### How to plot an unstable attractor?

I'm trying to solve and plot the following in Mathematica: ...
46 views

### Plotting the percentage difference between two curves

I would like to plot the percentage difference between the following functions: ...
116 views

### Light beams reflecting from parabola

How can we show the paths of three light beams in Mathematica which bounce back after hitting the parabola, in a single plot? Suppose we have the following code ...
65 views

### Why isn't the arrow displayed when I use Show? [closed]

I have been trying to combine two plots using Show. Everything looks fine, but the arrow from one of the plots does not show. What am I doing wrong here? ...
113 views

### Mathematica just takes infinite time to solve this

Can You help? I don't even care about the exact solution. I will be satisfied by the series expansion of the result around a=0. I tried to solve by series expansion and the same result .. infinite ...
124 views

### Filling between two arrays with ListPointPlot3D

I would like to Plot two Arrays and use the function Filling to generate a soil layer: ...
83 views

### Plot and find intersection points of multiple curves

I tried to plot and find the coordinates of the intersectrions of more than two curves in a the plot. Is there a special way to do this? Here's my code so yu can visualize the whole thing. ...
35 views

### Two DistributionChart results in single plot

I have two sets of data that live on different scales, but I would like to plot them together to show the distributions of values side-by-side. Is there a way to add a second y-axis on the right that ...
35 views

### Plot3D modifies the shape of a plot

I have a little problem with the Plot3D function. Depending on how I define my variables, the shape of the plot is not exactly the same. The first way I use is for instance: Plot3D[If[Sin[xyz] > 1/2,...
119 views

### Solving a system of PDEs on a piecewise polynomial domain

I wish to solve following system of equations with Dirchlet and Neumann boundary conditions on an piecewise polynomial (cubic spline) shaped domain as showed here. ...
40 views

### Control the size of a Legend

Given the following plot ...
37 views

### Problem with plotting data [closed]

I am attempting to plot a large amount of data that I have imported from a file — dimensions {400, 2}. Both ListPlot and Plot ...
105 views

### Can Mathematica plot this financial simulation?

I'd like to run a simple financial simulation with something like the following constraints: You start out with $S$ dollars. Let's say $S$ is $\$1M\$ dollars You repeatedly make an investment that ...
41 views

### How to make a 3D plot using polar coordinates radius and angle dependence

I want to create a polar plot like this: Which can not be made with the RevolutionPlot3D comand like here, it is because my function is dependent of the radius <...
46 views

### ParametricNDSolve many functions and plotting

I don't understand why I don't get the plots : ...
43 views

### A 3D curve that originates from a face of a polyhedron

I need a hand to help me with a study i'm making. I have to unite two 3D objects: a face of a polyhedron with the points taken from PolyhedronData a 3D curve I ...
30 views

### Problem with ContourPlot3D of a torus

I want to plot a torus using the equation of its surface ...
36 views

### How to generates a plot of f as a function of x from dynamic xmin to dynamics xmax?

Good day! I want that with the following code it is possible to enter the minimum and maximum range of the variables x and y, but when running it the following error appears: Limiting value uMin in ...
47 views

### Tooltips hidden/inactivated by SphericalPlot3D

Any way to get points obscured by SphericalPlot3D to show their Tooltip? In the below example, Tooltips will appear when cursor moves over little spheres that are not obscured by the plot, but will ...
79 views

### Sizing a Labeled figure

I am trying to control the overall width of a Labeled bar chart. However, it seems whether I put ImageSize->225 as an option ...
50 views

### Problems with parameters

I want to plot an ellipsoid and geodesic on it depending on a, b, c. What is wrong with my code? I mean there is problem with Manipulate, if I remove this command and parameters a, b, c, then ...
41 views

### How can I fit my histogram with appropriate distribution?

I got this list: ...
83 views

### Why is SmoothKernelDistribution not symmetric in 2D?

For example, we create SmoothKernelDistribution from one data point in 2D, e.g. {0,0}. Why is the plot of ...
60 views

### How to overlap ListPlot and ArrayPlot? [closed]

Is it possible to make the points appear on the ArrayPlot? It doesn't have to be ListPlot to plot the points. Following is the code: ...
23 views

### Infinite expression, indeterminate expression when plotting polar conics

I am trying to plot polar conics using the PolarPlot function in Mathematica. When I plot a parabola or hyperbola, I get the following errors: ...
44 views

### Plotting evolution of probability with time

I have compiled data about the evolution of a function with time and the data looks something like this. I wanted to plot this data in the form of a density histogram such that every row represents ...
31 views

### Percentile BarChart with different EdgeForms

Is it possible to define different Edgeform's in a in a BarChart with ...
141 views

### Automatically Trimming Noisy Experimental Data and Extrapolating It

I have experimental data which looks something like this I first want to remove the outlier points which are at quite high value such as around x= -10,000 etc, how to automatically trim these points....
72 views

### Combining two plots at a common x-axis

I want to combine a Plot and a ListPlot at their common x-axis. Here's an example of what I've got so far: ...
38 views

### How can I set the coordinate interval in DensityPlot?

I want to plot 100 points in a density plot, but don't know how to set the interval of the x and y range. My code is: ...
68 views

### How to make axes appear when using Show to combine plots?

The following code results in coordinate axes not showing up. I'd like to understand why that happens and how to fix it. Ideally, there's a way to do it so that I can set the image size and axis ...
55 views

### Problem with step response of state space model

I have a continuous state space model for dc motor. I get a wrong step response when I use continuous model and I get the right response when I discretize the model using a different method. Can ...