Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plotting]

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

1
vote
0answers
26 views

Difficult to differentiate different line style , when we convert into eps and import into latex

Question 1 How to place the legend on top of the plot, I used Placed function to put a legend on top of the plot, but it is not working. Question 2 The moment If I export the end result of this ...
1
vote
0answers
30 views

Flickering in GIF animation [closed]

Writing: ...
1
vote
1answer
45 views

Changing Axes Values in MatrixPlot

I have a matrix of values (potentially quite big), which I have decoded into values of -1, 0 and 1 based on some rules. I want to use the MatrixPlot to see the ...
3
votes
1answer
181 views

Limited line style for differentiating curves in the plot

Question 1 I have a plot which consists of six curves, and I wanted to differentiate these line without using any color. I the only option that I left with is to use different line style. After ...
3
votes
2answers
70 views

Trying to plot the norm of the solutions to NDsolve

I have been tried to do two things with the solutions from NDSolveValue plot the norm of the solutions of a differential equation system versus time. plot one component of the solutions of a ...
1
vote
2answers
46 views

How to Plot solve function

So I have Emin[T_, d_] := If[T == 0, 0, 1/(-1 + E^(1/T)) - d/(-1 + E^(d/T))]; which I can solve wonderfully for ...
0
votes
0answers
19 views

Plot markers overlying plot frame instead of underneath? [duplicate]

In the following plot the plot markers are overlain by the plot frame: ...
3
votes
1answer
45 views

PostProcessing the SMTNodeData values in the deformed configuration

I have been struggling with this problem for a long time. I know that this question is not specifically related to AceGen or AceFEM, but I would like to know if anyone had a similar experience in ...
2
votes
2answers
454 views

How can I make a general plot like this in Mathematica?

I want to make two general graphics something like the following. I want to illustrate the approach to the function by means of a polynomial. I have tried the following. ...
-3
votes
1answer
94 views

How can i plot graph and its root?

I am using this code. wn = 100; aap = 0.2; ome = 9; Solve[{(2 x + 2) ((dco - wn aap x)^2 + 1) + 4*ome*x == 0}, {x}] Plot[{x /. %}, {dco, -40, 0}] I am using ...
4
votes
2answers
209 views

Graph of Chebyshev's first polynomials, almost like the wikipedia graph

I want to graph the first polynomials of Chebyshev almost like the graph of Wikipedia: I have tried it this way ...
5
votes
1answer
103 views

Randomly distributed circles inside an annulus

With the following code: ...
0
votes
1answer
51 views

Speeding Up Evaluation of an Animation

I have a scatterplot composed of about 1M points, which I would like to plot in succession as the axis scale increases. Here is the code, where Coordinates[n_] gives the first n {x,y} values. The ...
3
votes
2answers
65 views

Modify Axes Range

With the following code: ...
2
votes
2answers
50 views

showing the grid points on the curve

Do you have an idea how to show the points on the graph itself? For example, if I have the plot below and I need to show the points on the curve, how to do that? ...
2
votes
1answer
54 views

Project ContourPlot3D onto 2D slices. It is possible?

I've generated a Contourplot3D from a pde[t,x,y,z]. Now, i'm trying to project this contourplot over slices of images that move on the x, y and z axes. What I want is that when moving the slices a ...
2
votes
0answers
28 views

Not uniform axes thickness in the plot

I am using Mathematica to prepare figures for a paper. I found that the thickness of the frame axes can easily become not uniform. For example, when I changed the frame thickness using ...
1
vote
2answers
64 views

How to draw line animation using ListPlot?

Basically, I want to create a movable, horizontal line, whose coordinates are (-4, h(t)) and (4, h(t)), that will move along the y-axis as t increases. Now, I already knew how to draw a movable dot: ...
0
votes
0answers
21 views
3
votes
2answers
51 views

Overlaying custom plotmarkers onto graphics primitives using Show

I have found the custom plotmarkers package developed by @Alexey Popkov extremely handy for makeing nice, accurate plots. However, I have run into a small issue that I am struggling to make sense of. ...
1
vote
2answers
61 views

Create a moving point along a parametric plot using Manipulate?

Assume that G defined by: G = {Sqrt[1 - x] + I Sqrt[x], Sqrt[1 - x] - I Sqrt[x]} I am trying to create a point that moves along the curves of G from x=0.01 to x=...
1
vote
3answers
74 views

How to get the coordinates of the extrema from a plot?

I generated a number of plots. Let us assume that we now have these plots simply as an image. How do I get the coordinates of the extrema in this image? I am interested in getting the coordinates as ...
0
votes
0answers
22 views

There is an unwanted line appearing in the plot [duplicate]

I have some set of data, and I have plotted it, I get to see some unwanted horizontal line at y=4, and I expected a horizontal linear near y=0. How to over come this. And also how to put legend for ...
1
vote
0answers
28 views

Plotting several vector fields in 3D [duplicate]

I wish to plot a distribution in R3 as in the picture below I know that Wolfram allows to plot sveral vector fields as it is in the page VectorPlot3D[{field1,field2,…},{x,xmin,xmax},{y,ymin,ymax},{...
0
votes
0answers
6 views

Using manipulate in the plot of a function that depens on a FindRoot function [duplicate]

I've the following two codes: FindRoot[Abs[Uin*Sin[2*Pi*fin*T - (Pi/2)]] - 2*Ud == (Uin - 2*Ud)* Exp[-T/(c*Rb)], {T, 1/(4*fin), 1/(2*fin)}] And: ...
0
votes
0answers
42 views

Generate graphics lines from letters

I would like to convert a letter into a Graphics object, composed of a series of points (or lines). For example, I would like to convert "J" into a single series of points, which I can then join up to ...
0
votes
1answer
42 views

Trying to combine plots

I'm trying to combine two plots ...
1
vote
1answer
42 views

Make a plot from data [closed]

I have two variables $x$ and $y$ satisfying, say, $y^2 + x < 1$, such that $0 \le x < 1$ and $0\le y<1$. I want to plot all the points satisfying the inequality $y^2 + x < 1$ and also show ...
0
votes
1answer
31 views

How to close the contourplot3D from top?

I received a very nice solution by Chip Hurst to make my 3DContourPlots smooth and closed in here. Now I have another problem that is simpler but I still want to know the ideas of the others. The data ...
4
votes
1answer
66 views

Add minor ticks to custom ticks

So as of now I am using Ticks -> {Range[0, d, 1]} where d is the maximum value for my axes. But the thing is that ...
2
votes
0answers
33 views

How to place a ListPlot in a Texture without losing resolution?

I have a code that produces the left plot (vectorised image), and makes into a Texture in order to have it under a ListPlot3D (...
1
vote
0answers
20 views

Plotting 3D points with function as contour

so I have a grid of points in 2D $(x_i, y_i)$, and a function $f(x_i,y_i)$. I plotted them together like this: -- Now I would like to do the same with a grid of 3D points $(x_i, y_i,z_i)$ and a ...
3
votes
1answer
87 views

Contour Plot: Selecting the contour line that crosses a specific point

I have a very complicated function $f(u,v)$ in the complex $u,v$ plane which has several contours with the same value $x$, so that when I draw a ContourPlot of the ...
1
vote
1answer
38 views

Plotting a table choosing the x-axis numbers yourself

I have got a vector with y values: ...
1
vote
0answers
46 views

Reversing Plot Axis with scientific Notation

I'm dealing now with a problem of three steps which already has solutions in each of them. Basically, I want to write numbers on x-axis with scientific notation, but before that, I reverse the axis ...
1
vote
2answers
71 views

Convex hull in 3D — two colorings for some of the faces

I'm new to Mathematica :( I need render 3D graphics of a convex hull of 100 points, but with two colorings. Image (a) is the convex hull $Q$ of 100 points, and (b) is $Q$ along with the shadow ...
1
vote
0answers
42 views

Fast Plot3D, failing NIntegrate, and reckless surgery

I have a square matrix, m which depends on kx and ky. It isn't Hermitian, but it does have ...
1
vote
1answer
50 views

How to make the ListContourPlot3D smooth and closed?

I am struggling with making my plot in ListContourPlot3D smooth and closed. I have seen so many posts regarding the same issue but in other functions, the solution of which can not be applied to ...
0
votes
1answer
52 views

Plotting a System of ODE's Phase Portrait

I want to plot a phase portrait, I think I need to use StreamPlot to do this, $$x'=x(a-bx-cy)$$ $$y'=y(d-ex-fy)$$ I know how to plot this with manipulate ...
4
votes
2answers
79 views

Forcing scientific ticks

I have looked into previous questions about forcing scientific notation frame ticks and even I do the same thing my plot still has the wrong ticks. Instead of 1/1000 I want to have $10^{-3}$. ...
6
votes
2answers
735 views

How to optimize Mathematica code that depends on eigenvalues of big matrices and big sums?

I've been using Mathematica recently to generate some plots of a few functions. I've been able to get it right after a few questions here. The resulting code, which works, is this: ...
0
votes
0answers
87 views

How do I get a beautiful image overlay from data and a model function?

I have a set of experimental data that I wish to make into a density plot. Then I have to overlay an image of a model function f(x, y, z) = Sin(x/z)Sin(y) on the ...
0
votes
0answers
36 views

How to draw grid lines with specific basis in ListPlot?

GridLines draws rectangular grid lines in the plane, but what I'm trying to do is to visualize grid lines by specific basis vectors. For example, the basis vectors ...
0
votes
1answer
49 views

How to show an arrow plot of a matrix with complex numbers?

I am trying to make a 3D plot of arrows showing the directions of my magnetic field on different points on a sphere. I am constantly facing errors about the scaling which I do not know how to fix. I ...
-1
votes
1answer
36 views

How to manually set x-axis range in ListPlot [closed]

If I were to plot ListPlot[{{5, 7}, {-2, 2}}], then mathematica automatically sets the x-axis range which is from -2 to 5 in this case. I want to set this manually, ...
6
votes
1answer
64 views

How to control the relative sizes of graphics combined with Inset

I created a two grids like this ...
2
votes
1answer
38 views

What is the relation between Line/Point coordinates and ImageSize?

If I try Graphics[Line[{{0, 0}, {0, 1}}], ImageSize -> 150, AspectRatio -> 1] then I get This has a lot unnecessary white space on both sides of the line....
2
votes
3answers
98 views

Using the “TemperatureMap” color scheme to color a 3D spherical plot

Before all, I have read this question and others but it doesn't help me, I thought I understand the problem but actually not (see my post) Controlling ColorFunctionScaling I want to do a very simple ...
3
votes
2answers
83 views

How to combine labeled graphics?

If we have two or more labels graphs, and we want to put them in a bigger graph at specific locations, how can we do it? I tried the following and it does not work ...
2
votes
1answer
99 views

What am I doing wrong when trying to plot this function?

I'm trying to reproduce the computations of this paper and I'm running into some troubles because I'm rather new to Mathematica. In the paper's page 4, in figure 2 the authors show a plot of a ...