Questions tagged [plotting]

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

Filter by
Sorted by
Tagged with
5
votes
1answer
37 views

How-to generate a stacked BarChart?

I would like to generate a stacked BarChart using following sudo dataset. ...
2
votes
1answer
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}] ...
0
votes
1answer
28 views

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

I got a solution in the form of a Root object from an equation: ...
1
vote
1answer
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 ...
2
votes
1answer
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 ...
2
votes
1answer
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 ...
0
votes
1answer
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 ...
3
votes
0answers
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 ...
4
votes
2answers
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 ...
1
vote
1answer
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)...
2
votes
2answers
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 ...
0
votes
0answers
35 views

Inconsistent and oscillatory behavior with formula

I have the following code ...
0
votes
0answers
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. ...
0
votes
0answers
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 -> &...
1
vote
1answer
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 ...
1
vote
0answers
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 ...
1
vote
1answer
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 : ...
9
votes
0answers
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: ...
1
vote
0answers
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 ...
0
votes
1answer
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$...
4
votes
2answers
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. ...
3
votes
1answer
41 views

Error bars in the same plot

I have the following data: ...
0
votes
1answer
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 ...
0
votes
0answers
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 ...
1
vote
1answer
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 ...
1
vote
1answer
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 ...
3
votes
2answers
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: ...
2
votes
2answers
87 views

3D Histogram from discrete data

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

Display Table output as a grid of points

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

How to select parts of a (non)function

I have a set of points ...
2
votes
1answer
48 views

Issue with Option Filling -> Axis

In mathematica 12.0, the following code ...
0
votes
0answers
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 ...
3
votes
1answer
74 views

Two-color HatchFilling

Is there an easy way to make HatchFilling use two alternating colors? E.g. ...
1
vote
2answers
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? ...
0
votes
0answers
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 ...
0
votes
2answers
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 ...
2
votes
1answer
52 views

Writing a function to find ehe volume under$ |f(x,y)|$ over an area [closed]

I need to write a function to find the volume under a surface $|f(x, y)|$ and over an certain area. The output of the function is going to be the volume and a plot. For example: Given $|f(x,y)|=|3+x^2 ...
4
votes
5answers
423 views

Filling gradually varied colors under a function curve

I would like to plot a figure with a top to bottom gradient like this: I drew this figure using Matlab. Is it possible to plot a similar one using Mathematica? I googled some posts, but I do not know ...
1
vote
1answer
53 views

ParametricPlot3D returns an empty plot whereas Plot3D works [closed]

I would like to make a ParametricPlot3D of the solution of a Laplace equation in a circular area, so I write in the notebook the following: ...
5
votes
2answers
53 views

Problem with parametricplot of a closed curve

When plotting a closed curve with parametricplot several times, ParametricPlot[{Cos[u], Sin[u]}, {u, 0, 100000}] the curve becomes a filled region, instead of ...
3
votes
1answer
41 views

Associate pairs of data

What I want is to associate the pairs of a nested list, like this: ...
0
votes
1answer
33 views

Correcting error messages emitted by ListPlot

I have an assignment to use Module and in which I have to implement: The input of the program are a list of numbers and a list of strings Check whether every ...
5
votes
1answer
45 views

Piecewise function not evaluating properly

I have a simple Piecewise function that defines a square pulse: ...
0
votes
1answer
39 views

Surface Plotting

I want to Plot a surface using ListPlot3D. The Data used to feed the Plot is generated from measurments. The Problem is, sometimes the measurments generates x ...
1
vote
0answers
27 views

Using RegionPlot with NDSolve

So I have a DE which has no analytical solution and thus solved using NDSolve, involving some parameters like this: ...
1
vote
0answers
41 views

Two-dimensional Contour-Plot

I have a quick question: In a Solid-state Physics lecture, we discussed the so-called tight-binding model. For that, we had the dispersion-relation (which gives us the dependence of the energy $E$ wrt ...
5
votes
2answers
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 ...
0
votes
1answer
79 views

Combine different kinds of plots [duplicate]

how can i combine thats plots: ...
0
votes
1answer
26 views

Parametric field Plot

i want to plot this field: G(x,y,z) = (0,0,-b^3(x^2+y^2)cos(b^2(x^2+y^2))) with the parameter b>0. Is it possible to do that? if yes,how can i do that?
3
votes
1answer
72 views

Coding the Mandelbrot Set for Beginners

I'm new to Mathematica and will need some help in coding the Mandelbrot set. I don't want to use MandelbrotSetPlot since I want to understand the interior ...

1
2 3 4 5
232