# Questions tagged [plotting]

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

11,568 questions
Filter by
Sorted by
Tagged with
37 views

### How-to generate a stacked BarChart?

I would like to generate a stacked BarChart using following sudo dataset. ...
50 views

### Plotting with “Around”

I have a number with certain uncertainty a1 = Around[1, 0.1] I try to plot a function with this number Plot[a1*x, {x, 0, 1}] ...
28 views

### How to plot a Root[] object? [closed]

I got a solution in the form of a Root object from an equation: ...
73 views

### How plot fabric of space time plots like these in Mathematica?

I would like to plot the blue deformed squared pattern rubber sheet surface like in this plot: https://physics.stackexchange.com/q/308295/14282 in Mathematica, with the modification that the ball or ...
85 views

### Calculate the Lyaponov exponent for a driven dampend spherical pendulum?

I’m relative new to Mathematica and also new to this forum. In fact this is my first question so please apologise if I do some formatting errors. I want to calculate the Lyapunov exponent of a driven ...
40 views

### Implementation of filling (Colour)

I have a question. When I use "Filling" Plot[Evaluate[{x^2, x}], {x, 1, 2}, PlotRange -> All, Filling -> {1 -> {2}}] One of the functions ...
51 views

### Plot 2D into discrete 3D [closed]

I want to do a 3D plot of this functiony[x_, r_] = -Tan[r] x where I get a set of lines evenly distributed on the r axis, with a discrete distribution. This is what ...
43 views

### Unfold/develop a RevolutionPlot3D mesh onto a 2D plane?

I'm making my own blimp out of emergency blankets (Mylar), and I want it to have a NACA0025 airfoil shape. I'm new to Mathematica, but I still managed to create the shape I wanted with ...
59 views

### Visualization of a set of data with a shape $m \times n \times 3$ with the last dimension interpreted as a color scale

Actually, if the data is shaped as $m \times n \times 2$, functions like ListLinePlot just do the job. But now I want to add colors to the curves according to ...
108 views

### How to draw line parallel to the coast on a world map?

The task is to draw a line parallel to the coast 150 nautical miles to the sea, highlighting the ocean between the coast and the line drawn. An expected result is an image (most aesthetically pleasing)...
51 views

### How to create 2d ListPlot with distinct colors?

I have a data set of type (x,y,E), where E can assume 4 distinct configurations (0,0), (1,0), (0,1) or (1,1). I want to create a 2D plot using ListPlot considering the rules: If E=(0,0), then print ...
35 views

### Inconsistent and oscillatory behavior with formula

I have the following code ...
38 views

### Why does Mathematica ignore negative parts of ArcCosh function? [closed]

For example, I want to plot the function $\cosh ^{-1}(2 x+3)$ on a domain $0<x<10$. I plot this function and only see the positive part. ...
50 views

### How can I make density plot from a data (csv) with Log Scales?

I have a data in .csv format and I wish to make a densityplot of the data points but with a log-log scale. I imported the data into Mathematica and used ListDensityPlot with ScalingFunctions -> &...
55 views

### How to solve complex equations and plot the graph?

I am trying to solve these equations and want to plot the value of $a^{\dagger}a$ versus P0. I have tried this code but this gives me an error like "Conjunction::argr: Conjunction called with 1 ...
17 views

### How to generate a region with a finite width/height on say $y$-direction, but infinite on $x$-direction?

I want to use such a region as an Epilog in other figures. I have tried with HalfPlane, thinking ...
76 views

### Plot time dependent 3D heat equation solution with functions like Plot3D +Manipulate (or Graph3D) but using cylindrical coordinates

I have a time dependant heat diffusion equation here and I would like to plot the result of NDSolveValue. Here is the code I am using : ...
102 views

### Peculiar behaviour in the implementation of “Filling”

I was working with mathematica and I need to use "Filling", however I notice that it doesn't work when you have "small" numbers, for example if I make the following: ...
56 views

### How-to extract a region from a ListContourPlot?

Question How could I extract a surface from the ListContourPlot and use it to sample data? Below is the plot, and the code used to generate it. The ...
46 views

### How do we list all points in the Middle $3/7$-th Cantor Set?

Suppose we were to list all points in the $3/7$th Middle Cantor set where we first remove $3/7$th of $[0,1]$: $$[0,1/7]\cup[2/7,3/7]\cup[4/7,5/7]\cup[6/7,1]$$ then $3/7$th of remaining intervals, $3/7$...
86 views

### How to draw a surface in polar coordinates

I want to draw a figure in this post, but the result that I draw according to the following method is quite different from that in the post. ...
41 views

### Error bars in the same plot

I have the following data: ...
45 views

### DSolve is not able to find a solution in some points

When I use the below script to solve an equation and plot the solution, the plot shows some discontinuous lines. For example at point $x\approx0.25$ the solver cannot find the answer and the plot is ...
28 views

### “Solve” command not giving the correct answer for plot of a potential function [closed]

I have this code with this function of a potential V ...
40 views

### NumericQ slows down the computation in ContourPlot

I am trying to plot the roots of a function f(x,y) using ContourPlot as follows ...
27 views

### ListContourPlot - request for clarification, why do the derived regions differ, and how did I misuse it?

Question I have generated two data sets using Outer and Subdivide commands. Both use similar boundaries except the second ...
35 views

### Display Table output as a 3D bar chart

Create a simple function with arguments {i,j}, and make a Table for an array of values. For example: ...
87 views

### 3D Histogram from discrete data

I have some (discrete) data of the type $\{x_i,y_i,z_i\}$ ...
78 views

### Display Table output as a grid of points

I want to create a Grid or Plot (or equivalent) from the following Table: ...
59 views

### How to select parts of a (non)function

I have a set of points ...
48 views

### Issue with Option Filling -> Axis

In mathematica 12.0, the following code ...
32 views

### ListPlot 3 column data file

I have a 3 column data file x,y,z. I want to plot y vs x in the plane, taking z as lateral color bar. I tried ListDensityPlot[{x, y, z} // Transpose] but did not ...
74 views

### Two-color HatchFilling

Is there an easy way to make HatchFilling use two alternating colors? E.g. ...
56 views

### How to use StreamPlot to plot the typical solution in this directional field?

How can I plot the typical solution in this directional field using StreamPlot? ...
38 views

### Inconsistency in mathamathica's plot within the same graph [closed]

So,I plot the graph in the 1st image, using the following code: Plot[(4 x^4 + 6 x^2 - 16 x)/(4 x^4), {x, -10, 10}] I get the graph below: But it doesn't show ...
61 views

### Plot implicit polar equation streamlines

I'm trying to plot streamlines of Stokes solution to an sphere, the expression of streamlines is I've seen similar questions before and this what I have tried As you can see, a=1, U=1, but it seems ...
52 views

154 views

### How-to position ContourLabel outside the Frame and Overlay ArrayPlot with ListContourPlot

This is a follow-up to the question I have left earlier today. Now, thanks to @kglr I made some progress on my mini project. This said, there are still a few things that I want to do with it, and I ...
79 views

### Combine different kinds of plots [duplicate]

how can i combine thats plots: ...