New answers tagged

3 votes

Assignment not working inside LogLinearPlot

...
Bob Hanlon's user avatar
  • 152k
2 votes

Assignment not working inside LogLinearPlot

You could define T within With: ...
eldo's user avatar
  • 49k
1 vote

Plotting curves of different orders of magnitudes on the same graph

We could also use MultiaxisArrangement, which came with V 13.0. It needs, however, a list as input. ...
eldo's user avatar
  • 49k
6 votes
Accepted

How to make the z-color of a contour plot mapped on the line?

...
Bob Hanlon's user avatar
  • 152k
2 votes

Plot and mention extremum with corresponding points of extrema

Here are plots: ComplexPlot[Log[Abs[h[v]]], {v, 0 + 0*I, 10 - 10*I}] ...
user64494's user avatar
  • 24.5k
2 votes

Plot and mention extremum with corresponding points of extrema

Assuming we have to plot Log[Abs[h[v]]] (Thanks @user64494 's comment) Try DensityPlotand ...
Ulrich Neumann's user avatar
3 votes

Problem finding a function and plotting it

Try ContourPlot to show the solution {j,t} ...
Ulrich Neumann's user avatar
5 votes
Accepted

How to plot the elements of a matrix in {x,y,z} coordinates?

Pasting my DATAC60 to make sure I copy pasted it right: ...
ydd's user avatar
  • 3,548
7 votes
Accepted

Graph for derivative function

$Version (* "13.3.1 for Mac OS X ARM (64-bit) (July 24, 2023)" *) Clear["Global`*"] Abs is a complex ...
Bob Hanlon's user avatar
  • 152k
5 votes

How to add two data tables of unequal length to plot a curve which should be sum of table1 plus table 2?

Try Interpolation ...
Ulrich Neumann's user avatar
0 votes

Plot[Im[f[x]],...] incorrectly gives graph of identical zero function

add a record for v12.1 ...
AsukaMinato's user avatar
  • 8,940
1 vote

Is it possible to draw really thin lines in Mathematica?

The OP has probably meant: xy = RandomReal[1, {10000, 2}]; ListLinePlot[xy, PlotStyle -> [email protected]] or ...
Maciej's user avatar
  • 11
3 votes
Accepted

Method of lines - Dirichlet and mixed BC

We can solve this problem using FDM and NDSolve as well to compare solutions. First code with FDM implementation ...
Alex Trounev's user avatar
1 vote

How fit my data to sinus?

Try this: ...
Mariusz Iwaniuk's user avatar
5 votes

How fit my data to sinus?

Assuming your data dane2 is known: With Method->"NMinimize" NonlinearModelFit works fine ...
Ulrich Neumann's user avatar
9 votes

How can we reproduce Eugen Jahnke's drawing of a complex function?

Try to simulate the effects of lighting. The light from lighting = {3, .2, 2}; seems work fine. ...
cvgmt's user avatar
  • 63.9k
14 votes
Accepted

How can we reproduce Eugen Jahnke's drawing of a complex function?

...
Syed's user avatar
  • 42k
2 votes

ParametricPlot not plotting domain end points

Adding WorkingPrecision -> 10 solves the problem. Also values for n in manipulate should be exact values. ...
azerbajdzan's user avatar
  • 9,923
2 votes

How to show many normal distribution curves in one plot

Since V 12.3 we have ListLinePlot3D: ...
eldo's user avatar
  • 49k
2 votes

Taylor approximation of integrals

I found one scheme that converges, but with not very high accuracy. Note that increasing the number of terms of the series and the number of iterations does not reduce the error. It is possible that ...
Alex Trounev's user avatar
0 votes

Contour plot of the imaginary portion of a function given the real part is positive

Since V 12.1 there are ComplexContourPlot as well as ComplexRegionPlot ...
eldo's user avatar
  • 49k
0 votes
Accepted

How to plot points on a grid given by two vectors?

Thanks to all comments, The right code should be: ListPlot[Transpose[{x,y}]]
Daniel Vainshtein's user avatar
2 votes

Taylor approximation of integrals

There are some typos in your equations if what you want to reproduce is table 2 and figure 1. In particular the alpha parameter is 20, not 0.2, the ...
Daniel Lichtblau's user avatar
1 vote

Is there a simple way to plot complex numbers satisfying a given criteria?

Since V 12.1 we have ComplexContourPlot and ComplexRegionPlot ...
eldo's user avatar
  • 49k
2 votes

Plotting |z-2| < 1 under w = z/(z-1)

With z= x+ y I and w: w[x_, y_] = (x + y I)/(x + y I - 1); we can vary x from 1 to 3. And y from -Sqrt[1 - (x - 2)^2] to Sqrt[1 - (x - 2)^2], we can plot the image ...
Daniel Huber's user avatar
  • 47.3k
6 votes
Accepted

Plotting |z-2| < 1 under w = z/(z-1)

We mapping the region ImplicitRegion[Abs[z - 2] < 1, {x, y}] to another region by the z( identity mapping) and ...
cvgmt's user avatar
  • 63.9k
4 votes

Plotting |z-2| < 1 under w = z/(z-1)

First plot: ComplexRegionPlot[Abs[z - 2] <= 1, {z, 0 - 2 I, 4 + 2 I}] After transformation: ...
MarcoB's user avatar
  • 65.8k
12 votes
Accepted

How can we plot Man Ray's "Shakespearean Equation" w == e^(1/z)?

Need to use Plot3D. Need to cut some sigular parts near z==0. ...
cvgmt's user avatar
  • 63.9k
6 votes

Nearest-neighbor density estimation in Mathematica

Here I'm first showing the (standard) nearest neighbor approach along with the generalized nearest neighbor approach (which is related to the nearest neighbor approach but uses kernels). The ...
JimB's user avatar
  • 40.6k
6 votes

Contourplot with three variables

Look at a ContourPlot3D from above: ...
Chris K's user avatar
  • 19.6k
6 votes

Contourplot with three variables

$Version (* "13.3.1 for Mac OS X ARM (64-bit) (July 24, 2023)" *) Clear["Global`*"] Either, plot a family of curves, ...
Bob Hanlon's user avatar
  • 152k
1 vote

Automatic FrameTicks with MaTeX style

You could use Plot[Sin[x], {x, -2, 2}, Frame -> True, ImagePadding -> 20] Replace with ...
Nasser's user avatar
  • 137k
0 votes

Automatic FrameTicks with MaTeX style

I think I fund one asnwer: ...
Jorge Castaño's user avatar
2 votes

Normalized Coincident Detection Probability of Laguerre - Gaussian Modes

...
Bob Hanlon's user avatar
  • 152k
4 votes
Accepted

Normalized Coincident Detection Probability of Laguerre - Gaussian Modes

Carefully compare the variables in the formula you provided with the variables corresponding to the variables in the code, and the result is what you want. ...
Vancheers's user avatar
  • 736
1 vote
Accepted

Adding an empty circle to this plot, plus changing styles

...
David G. Stork's user avatar
5 votes
Accepted

Rotating text in the Epilog of a plot results in distortion

Use Rotate inside Text (or Inset), rather than the other way round: ...
MarcoB's user avatar
  • 65.8k
2 votes

Combining 2D slices into a 3D plot

Using SliceContourPlot3D: ...
Syed's user avatar
  • 42k
4 votes
Accepted

MaTeX text looks shabby when latex generated pdf is not zoomed

A solution without a satisfactory explanation Open your PDF in Adobe Acrobat Reader and print it from there. I've had the same issue a while ago, when some of the images, created with python (...
Domen's user avatar
  • 19k
5 votes

Sum of its parts - replicating a porcelain sculpture of Nuala O’Donovan

...
vindobona's user avatar
  • 1,691
7 votes
Accepted

Sum of its parts - replicating a porcelain sculpture of Nuala O’Donovan

We select random points in the cube and select random directions to draw infinitelines and cut their by the PlotRange. We use ...
cvgmt's user avatar
  • 63.9k
0 votes

Hofstadter Butterfly for Graphene

...
Muhammad Imran's user avatar
2 votes
Accepted

Plotting an integral with solving for a specific constant

As an example, we take a simple function that we can integrate analytically: f[t_] = t + 2; Integrate analytically: ...
Roman's user avatar
  • 46.2k
8 votes

Sum of its parts - replicating a porcelain sculpture of Nuala O’Donovan

...
Syed's user avatar
  • 42k
8 votes
Accepted

Why is the graph size decreasing in 'Column'?

ImageSizeMultipliers Wrap Column[...] with Style[#, ImageSizeMultipliers -> {1, 1}] &: ...
kglr's user avatar
  • 384k
5 votes

How can I create a rectangular graphic with curved edges?

Since V 10.2 there is StadiumShape and since V 12.2 we have LinearGradientFilling ...
eldo's user avatar
  • 49k
0 votes

Hofstadter Butterfly for Graphene

The most intuitive way to construct the Hofstadter butterfly for graphene is to write down two simultaneous Schrödinger equations for the basis sites, e.g. $$E \Psi_{m,n}^A = -t e^{\mathrm{i}\theta_1}\...
Bart's user avatar
  • 279
3 votes
Accepted

Choosing desired text on the axis

another possibility ...
Nasser's user avatar
  • 137k
2 votes

Choosing desired text on the axis

Plot[x, {x, 0, 5}, Frame -> True, FrameTicks -> {{Automatic, None}, {{1, {1.5, "a"}, 2, 3, 4, 5}, None}}] With some styling options: ...
eldo's user avatar
  • 49k
0 votes

Continuum model Hamiltonian for TMDS

The ky is wrong, it should be like KYY1 = N@Subdivide[-g1[[1]]/Sqrt [3]/2, 0, Num - 1] to create the correct one.
shum's user avatar
  • 1

Top 50 recent answers are included