axis

Matplotlib log scale tick label number formatting

匿名 (未验证) 提交于 2019-12-03 02:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: With matplotlib when a log scale is specified for an axis, the default method of labeling that axis is with numbers that are 10 to a power eg. 10^6. Is there an easy way to change all of these labels to be their full numerical representation? eg. 1, 10, 100, etc. Note that I do not know what the range of powers will be and want to support an arbitrary range (negatives included). 回答1: Sure, just change the formatter. For example, if we have this plot: import matplotlib.pyplot as plt fig, ax = plt.subplots() ax.axis([1, 10000, 1, 100000]) ax

Dual y axis in ggplot2 for multiple panel figure

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: We can not easily create the dual y axis with ggplot2. kohske provided a solution to add dual y axis for single panel figures ( http://rpubs.com/kohske/dual_axis_in_ggplot2 ) @Andreas show an example to align two plots with ggplot2 (still single panel figures) ( Plot with 2 y axes, one y axis on the left, and another y axis on the right ) These tricks can not work if figures have multiple panels (created by geom_wrap or geom_grid), e.g. 4 panel figure below. I would like to add the axis of p1 to the right side of panels of merged

Gnuplot date/time in x axis

匿名 (未验证) 提交于 2019-12-03 02:45:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a quick question regarding dates and times in x-axis in GNUPLOT. I'll let the code do the talking: This is my data: #Time Data in Data out "2013-07-22 15:59:00" 6286 3730 "2013-07-22 15:58:00" 10695 14589 "2013-07-22 15:57:00" 17868 26464 "2013-07-22 15:56:00" 18880 34012 "2013-07-22 15:55:00" 19206 41192 "2013-07-22 15:54:00" 20365 43218 "2013-07-22 15:53:00" 18459 39298 "2013-07-22 15:52:00" 3420 4686 "2013-07-22 15:51:00" 3256 4942 And this is the code that is generating the graph: gnuplot> set title "Data usage over the last 24

Chart.js - Formatting Y axis

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Chart.js to draw a simple bar plot and I need to format its Y axis like 123456.05 to 123 456,05 $ I don't understand how to use scaleLabel : "<%=value%>" I saw someone pointing to " JS Micro-Templating ", but no clue how to use that with our scaleLabel option. Does someone know how to format this Y axis, and maybe give me an example ? 回答1: An undocumented feature of the ChartJS library is that if you pass in a function instead of a string, it will use your function to render the y-axis's scaleLabel. So while, "<%= Number(value)

Difference between Axis2 webservice and CXF web service

微笑、不失礼 提交于 2019-12-03 02:42:13
问题 I would be grateful if any one help me to understand the difference between axis2 web service and CXF web service. 回答1: The main differences between axis2 web service and CXF web service are as follows: CXF has support for WS-Addressing, WS-Policy, WS-RM, WS-Security, and WS-I BasicProfile. Axis2 supports each of these except for WS-Policy, which will be supported in an upcoming version. CXF was written with Spring in mind; Axis2 is not. Axis2 supports a wider range of data bindings,

Append a numpy.array to a certain numpy.array stored in a list

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have been for hours strugling to understand why i am not able to do this: >>> import numpy as np >>> a = [np.empty((0,78,3)) for i in range(2)] >>> b = np.random.randint(10,size=(1,78,3)) >>> a[0] = np.append(a[0],[b],axis=0) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/site-packages/numpy/lib/function_base.py", line 5003, in append return concatenate((arr, values), axis=axis) ValueError: all the input arrays must have same number of dimensions >>> a is a list with s empty numpy

Generate and plot the empirical joint pdf and CDF [closed]

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Given a pair of two variables (X,Y), how can you generate and plot the empirical joint PDF and CDF in vanilla MATLAB (no toolboxes)? 回答1: Original answer (Matlab R2015a or lower) The data are: The random variables X, Y: defined as vectors of samples X , Y . The bin edges at the x, y axes: defined by vectors x_axis , y_axis . The edges must obviously be increasing, but need not be uniformly spaced. The resulting PDF and CDF are defined at the centers of the rectangles determined by the x and y edges. To plot the results in 3D, use surf(...)

java axis web service client setMaintainSession on multiple services (cookies?)

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm implementing a client to a web service (and the guys maintaining the web service have been a litte unresponsive..) I've used axis and WSDL2Java to generate java classes and I can call their login-method on their authentication-service ok, and get a sessionId back (eg z4zojhiqkw40lj55kgtn1oya). However, it seems that i cannot use this sessionId as a parameter anywhere. Even a call to their hasSession()-method directly after login returned false. I managed to solve this by setting setMaintainSession(true) on the Locator-object for this

Flot Bar Graph Align Bars with X-Axis Labels

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Hello I am trying to plot a bar chart with 31 days data. However when I plot it, the label for each data is not directly in the center below its bar, when i set the bars to align: "center" , the first bar and last bar gets cut into half. Here is the jsfiddle: http://jsfiddle.net/3T6qc/ How do I set it so that i see the full bars and have the labels directly below in the center? Take note that I am using flot as the plotting library. 回答1: Hey Here are some points to be noted about your fiddle. You forgot to use axis label plugin in your

Customise x-axis ticks

匿名 (未验证) 提交于 2019-12-03 02:35:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a very large data frame (2 columns) in terms of records. I have plotted the graph in ggplot2. The X axis is the time and the Y axis is values. Over a specific interval from time 50 to 60, I want to make the ticks increments to be smaller such as (50,51,51,53,...59,60). For the rest of the axis, it is fine to have the ticks incremented by 10. So,I would expect to have X-axis values like : 10,20,30,40,50,51,52,53,54, 55 ,56,57,58,58,60,70,80,90,..190,200. I know, I can modify the ticks through scale_x_continuous by using breaks and