axis

Deleting consecutive RGB values from a numpy array

匿名 (未验证) 提交于 2019-12-03 01:00:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I initially created a subarray from the initial array for a greyscale image from this: Deleting consecutive numbers from a numpy array and Remove following duplicates in a numpy array But now I want to do the same for a coloured image and I'm really confused. I've been working on it for days and simply cannot make sense of how I can approach it. The problem is the squares are different sizes and I want a pixel for each square represented with the same colour. Coloured image: Coloured image My code for greyscale image: from PIL import Image

Format DateAsOrdinal xAxis labels in ZedGraph

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have now changed my x axis to DateAsOrdinal , but I would like to improve the label format. I currently handle the XAxis.ScaleFormatEvent like this: Private Function OnXScaleFormatEvent(ByVal pane As GraphPane, ByVal axis As Axis, ByVal val As Double, ByVal index As Integer) As String Dim result As String = "" If val < priceBars.Count Then Dim time As Date = Date.FromOADate(priceBars(val).X) result = [String].Format("{0:D2}{1}{2:D2}", time.Hour, ":", time.Minute) End If Return result End Function How can I make the labels only print every

JFreechart X and Y axis scaling

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: It's possible to set the axis scale values in jfreechart? For example, I'd want X-axis scale 10 and Y-Axis scale 1. 回答1: You set the TickUnit , if you are using an XYPlot try this XYPlot plot = chart.getXYPlot(); NumberAxis xAxis = (NumberAxis) plot.getDomainAxis(); xAxis.setTickUnit(new NumberTickUnit(10)); NumberAxis yAxis = (NumberAxis) plot.getRangeAxis(); yAxis.setTickUnit(new NumberTickUnit(1)); 文章来源: JFreechart X and Y axis scaling

WinForms Chart: Set minimum Y Axis display range

匿名 (未验证) 提交于 2019-12-03 00:58:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a Winforms chart in which I have temperature readings arriving and displaying every second. I like the way the chart works automatically handling the display of the values, but I want to change one simple thing . I want to increase the minimum displayed y axis range, so it displays a range of 20. At the moment it only displays around 5. I have tried a few things: //(when new data arrives...) //Does not work, I think because by default, Size is always NaN? if (chart1.ChartAreas[0].AxisY.ScaleView.Size < 20) { chart1.ChartAreas[0].AxisY

index 0 is out of bounds for axis 0 with size 0

匿名 (未验证) 提交于 2019-12-03 00:57:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am filling two arrays, field_in_k_space_REAL and field_in_k_space_IMAGINARY , with values extracted from a Gaussian distribution, paying attention to respect the symmetry to get a real field when I inverse-transform the arrays. Here is the code: field_in_k_space_REAL = zeros(n, float) field_in_k_space_IMAGINARY = zeros(n, float) field_in_k_space_REAL[0] = 0.0 for i in range(1, int(n/2+1)): field_in_k_space_REAL[i] = np.random.normal(mu, math.sqrt((1/2)*math.exp(-(2*math.pi*i*sigma/L)*(2*math.pi*i*sigma/L)))) x = range(int(n/2+1), int(n)) y

Google charts secondary axis line charts

匿名 (未验证) 提交于 2019-12-03 00:53:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm currently learning a bit of google charts with web editting to broaden my knowledge and I'm having a issue I can't get around. <html> <head> <script type="text/javascript" src="https://www.google.com/jsapi"></script> <script type="text/javascript"> google.load("visualization", "1", {packages:["corechart"]}); google.setOnLoadCallback(drawChart); function drawChart() { var data = google.visualization.arrayToDataTable([ ['Year', 'Derby', 'Bristol', 'Warrington', 'Indianapolis', 'Dahlewitz', 'Montreal'], ['2012', 143754.00 , 7607.59, 958.51,

AXIS error: There is no SOAP service at this location

匿名 (未验证) 提交于 2019-12-03 00:52:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Note: I could not find a straight-forward answer to this problem so I will document my solution below as an answer. I generated the server-side part of a webservice from a wsdl using Axis 1.4 and the axistools-maven-plugin . The Axis servlet is mapped to /services/* , the service is configured in WEB-INF/server-config.wsdd as follows: <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <service name="TestService" style="document" use="literal"> <namespace>http://example.com

How to change the x axis in Graphite/Grafana (to graph by day)?

匿名 (未验证) 提交于 2019-12-03 00:50:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to have a bar graph in graphite/grafana that has a single bar per day, over the week. Ideally we would have the days of the week (Monday,Tuesday...etc) on the x axis labels, and then seven bars in the graph, one for each day of the week. I can't seem to change the X axis at all though. Thoughts: I could cook the time data, and send it a fixed time since epoch value, but this results in a very thin bar on the grafana page. I could write a script to send a huge amount of metrics with seconds since epoch values representing the

Hide all text on y axis dc.js bar chart

匿名 (未验证) 提交于 2019-12-03 00:50:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am creating a DC.JS based dashboard, but would like to figure out how to hide all of the text on the y axis of the bar chart as well as style the text on the x axis. Thanks 回答1: You should decrease ticks to zero: yourChart.yAxis().ticks(0); Note that this does not return a reference to your chart, so you cannot chain this method. You must put it on a separate line. Like this: var yourChart = dc.barChart('#your-chart').width(1024).height(50); yourChart.yAxis().ticks(0); 回答2: you should decrease ticks for axis yourChart.yAxis().ticks(0);

AxisFault: What does Server.userException mean?

匿名 (未验证) 提交于 2019-12-03 00:46:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: What does the following AxisFault mean? Does it mean that: The request that is issued and received by the server and the server throws an (uncaught) exception, and therefore the exception is returned back to the client. or My web app fails to create the SOAP request (so the request is not even sent from the client app) NB. I'm new to web services AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1c) was found in