# Is the range of this plot correct using *ScalingFunctions -> "Log"*?

Mathematica Asked by charmin on October 24, 2020

I use DiscretePlot for a function $$f$$ and the result is

As I see, the range of the function includes negative values. Then, when I use ScalingFunctions -> "Log", I obtain

Here, the negative range of the function is given by positive values. Is this true?

If I correctly understand it, you want to build a log-plot of a fuction taking negative values. In this case the ScalingFunctions -> "Log" option does not do the job. This can be done as follows. Compare

DiscretePlot[(-1)^n*n!, {n, 2, 7}, PlotRange -> All]


with

DiscretePlot[Piecewise[{{Log[Max[(-1)^n*n!, 0]], (-1)^n*n! >=
0}, {-Log[-Min[(-1)^n*n!, 0]], (-1)^n*n! < 0}}], {n, 2, 7}]


Answered by user64494 on October 24, 2020

## Related Questions

### How to reproduce SmoothKernelDistribution[] for the bivariate case

0  Asked on June 28, 2021 by stathisk

### Determine if intersection of Polygon and HalfLine is non-empty

0  Asked on June 27, 2021

### Solution for system of linear equations for unknown variables in Mathematica and Python

1  Asked on June 27, 2021 by r-g-j

### Replacement rule from list to powers

1  Asked on June 27, 2021

### Convert Derivative[1][f] to f’

2  Asked on June 27, 2021

### Avoiding/skipping singularity error in ParametricNDSolve

1  Asked on June 27, 2021

### Work with real time interactive trading chart with a different time frame

1  Asked on June 27, 2021 by giuseppe-vonella

### Possible bug in RegionDistance with RegionBoundary?

1  Asked on June 27, 2021 by sneezefor16min

### Unit scaling: Human readable Quantity units

0  Asked on June 27, 2021

### 3D FEM Meshing Internal Regions

1  Asked on June 27, 2021 by andrew-green

### plot a list color data is set by another list

1  Asked on June 27, 2021

### Stacked/Percentile Bar Chart formatting

1  Asked on June 27, 2021

### Custom arrowhead will not align properly

0  Asked on June 26, 2021 by bjoj

### how to create a directed bar chart

3  Asked on June 26, 2021

### Read newer version of Mathematica file

0  Asked on June 26, 2021

### Array reshaping without explicitly specifying one dimension

2  Asked on June 26, 2021

### Mathematica returns incorrect evaluation of integral

1  Asked on June 26, 2021 by comptonscattering

### Simplify 1+Sqrt[2]I-Complex[1,Sqrt[2]]

2  Asked on June 26, 2021 by pdmclean

### Mathematica outputs a trigonometric integral ($sec^3$) in a form I can’t prove

1  Asked on June 26, 2021 by emanuel-landeholm

### ExternalEvaluate Error

0  Asked on June 26, 2021

### Ask a Question

Get help from others!