# Tag Info

Accepted

### Visualising Maxwell's equations using MATLAB

Here I have an example: ...
Accepted

### Should a colorbar have constant values throughout a simulation?

The selection of colormap should be based on your dataset and audience, e.g., you do not want to use a colormap that have some cultural background for a group of people. Also, if your images are going ...

### What determines the usual chemistry textbook plots of atom orbitals?

Your intuition is right, for example in 3D Orbitals (German Wikipedia) the caption explicitly states that 90% iso-surfaces are used. I have however seen different percentages before where the results ...

### Python package for (adaptive) function plotting

Yes. Sage can plot functions adaptively; the link is to a 3d implementation, but presumably, there is an analogous 2d implementation. You could use this function that samples adaptively 1-d functions....
Accepted

### Estimation of viscosity from critical properties

You can use Plot Digitizer and extract the data points in your image graph as a xml file and then you can parse it by using Python. It's pretty straightforward. You need to import the image of your ...
Accepted

### WRL and VRML to Matplotlib/Numpy

{Assuming you still need the code} Let A1.wrl is your wrl file. ...
Accepted

### Python package for (adaptive) function plotting

It sounds like you want the multi-precision plot function from SymPy, which is capable of plotting arbitrary black-box functions over a given range. ...

### Should a colorbar have constant values throughout a simulation?

I agree that using the same color scale is generally good practice. Not doing so is confusing. Now, as you note, there are cases where this doesn't leave very much information in each picture. In such ...
Accepted

### Nice plot of f(x)

Using Python and mpmath: import matplotlib import mpmath f = lambda z: z**3-z+1 mpmath.cplot(f, points=100000) Easy peasy.... See here for the documentation on <...

### Having smoother contour plots in MATLAB

Is the white part NaNs? If so, then you will need to use some sort of extrapolation to smooth that region. The function inpaint_nans may be appropriate (it smoothly fills in NaN regions, essentially ...

### Satisfying Periodic Boundary Conditions while plotting spherical particles inside a cube

A quick and dirty solution is to plot a phantom sphere outside the cube on the opposite side, and then apply clipping to the cube boundary.

### How to make scatter plots of scalar fields with free software?

Points for a scatterplot of a probability density function can simply be sampled from it. I used the Psi(X1, X2) you defined in your linked post. The number of ...
Accepted

### Help on writing sofware: general guidelines, in particular separation of computation and visualization

My first question is, when it comes to writing the software what is the best practice for the separation of these steps? Should a program do all of these steps or is it better to divide the steps ...

### How to plot function with evenly spaced x values in Matlab

You can use linspace function, x=linspace(-1,3,101); func=exp(x-sqrt(2))-cos(x-sqrt(2))-(x-sqrt(2)); plot(x,func,'or');

Accepted

### Efficiently plot a finite element mesh solution with Matplotlib

You might be interested in trying other visualization tools such as ParaView, Mayavi or PyVista. But, since the question is about Matplotlib, I would suggest that you use ...

### Graphing electric potential of a ring of charge using MATLAB help

I received a solution to this question from MATLAB's community. Essentially, I need to specify which contour lines to plot using the 'levels' spot on the 'contour()' command. Levels allows you to ...
Accepted

### Graphing electric potential of a ring of charge using MATLAB help

You don't need symbolic variables to compute the approximated potential for your Riemann sums. You can just use meshgrid to evaluate the potential in each point of ...
Accepted

### How to draw a vertical line in Paraview Line Chart

I would add an extra variable, that goes between the max and min of your other variables and only changes value when your method changes, and, thus, connects them as a sum of step functions. In some ...

### How to remove singularit​ies/discon​tinuities on 3D plots in Matlab?

MATLAB doesn’t plot where there are NaNs, so you can replace some of your data with NaNs to make a clean jump. I don’t know which is a bigger lie, a clean jump or a strange wiggle. That’s up to your ...

### Visualising Maxwell's equations using MATLAB

From browsing some forum posts, it appears that the numerical solution to these equations is not trivial to obtain. See, for example, this discussion (admittedly dated now). You indicate in your post ...
Accepted

### Plot a surface from data sets in MATLAB

You may be better served with a slightly different method of surface plotting, especially if you're having memory issues. What you're doing right now is actually two separate things: Interpolating ...

### Help on writing sofware: general guidelines, in particular separation of computation and visualization

Should a program do all of these steps or is it better to divide the steps between different scripts and save the data in between? Keep them separate. The reason to consider integrating a ...
Accepted

### How to plot a price level matrix in Matlab?

I just found the in-built function I was looking for: "imagesc". For example: >> imagesc(eye(4)); colorbar gives this