lims

Matlab二维曲线之fplot函数

南楼画角 提交于 2020-02-17 09:19:50
fplot函数的格式:fplot(f, lims, 选项) 其中f代表一个函数,通常采用函数句柄的形式。lims为x轴的取值范围,用二元向量[xmin, xmax]描述,默认值为[-5, 5]。选项定义与plot函数相同,具体可参见: https://blog.csdn.net/Mrweng1996/article/details/104338453 。 代码示例: clc; clear all; f = @(x)sin(1./x); %构建匿名函数 fplot(f,[0,0.2],'b'); 运行结果: 来源: CSDN 作者: 星尘亦星辰 链接: https://blog.csdn.net/Mrweng1996/article/details/104340345

Displaying minor logarithmic ticks in x-axis in R

匿名 (未验证) 提交于 2019-12-03 02:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a normal distribution plot and a histogram plot with x axis in log scale displaying 0, 10^0, 10^1 ... I want to include minor ticks between the major ones. Actually I was able to change the major ticks format from 1, 2, 3 and so on to 10^0, 10^1, 10^2, 10^3 using the solution given to me in my previous question . I used the following code for the major ticks : major.ticks <- axTicks(1) labels <- sapply(major.ticks,function(i) as.expression(bquote(10^ .(i))) ) axis(1,at=major.ticks,labels=labels) Can this be edited to just mark the