Posts

python - Axis limits for scatter plot - Matplotlib -

Image
I have the same problem, though the proposed solutions do not work for me. I am planning a set of data that is plotting this pattern of the main plot: Which is the conspiracy that differentiates Axis bounds (-1, 1) from both x and y, this marginal set with this part of the code Occurs: plt.figure () plt.show (data) ## Some margin L, R, B, T = PLT.exis () DX, DI = RL, TB Plat. Axis ([L-0.1 * DX, R + 0.1 * dx, b-0.1 * dy, t + 0.1 * dy]) In problem Ray has "complicated" plot which is why I made some changes. This is the code that creates it: def plot_quiver_singularities (min_points, max_points, vector_field_x, vector_field_y, file_path): "" "Plot Vilkshntaan vector field: Param File_path: save path data: ultimate Vector_fild_aks for the vector field X plant Plot: ultimate Vector_fild_y: vector fields to plot y components: ultimate Min_point minimum Rating One set (A S, Y): param max_points: a set of (x, y) maximum points area "" ...

javascript - How can I load PHP GET values using jquery .load() -

I'm trying to load data from another page. The data I am trying to load is a simple PHP $ _ GET value that was passed through the URL $ _ GET The value should be loaded when the following link has been clicked When I use the following href link only data loads: & Lt; An id = "pizza" href = "#" & gt; Pizza & lt; / A & gt; However when I use this href tag The content is not loaded I came to know that this is not loading because I set the content to be displayed only when the link is clicked in such a way. . & lt; Script & gt; $ ("#pizz") ("Click", function () {$ ("# item_description"). Load ("item-description.php");}) & lt; / Script & gt; The problem is that when I click on the link it starts a new XHTTP request and $ ("# item_description") Does not reach. Load ("item-details.php"); Because nothing is being clicked when there is a new XHT...

apache pig - Pig : result of json loader empty -

I am using cdh5 quickstart vm and I have such a file (not complete here): And I used this script: books = load 'data / book- ceded.jason', authors: Bags {T: Tuple (Author: chararray)}); Books' No-c Grade '. The script works, but the generated file is empty, do you have any ideas? In the end, only this schema works: If I add or remove a location different from this configuration then I get an error: " User_id ":" kim95 "," type ":" book "," title ":" adm press and edison-wesley "," authors ":" [["name" ":" Source: ":" Marshallo 79 "," Type ":" Modern Database System: Object Model, Interoperability, and Beyond "," Year ":" 1995 "," Publisher ""] "," Source " ":" Book "," Title ":" Inequality: Principle of majority and its application "," Y...

r - Perform analysis on the results of aggregate function -

temp & lt; - कुल (। ~ समूह द्वारा स्तंभ, डेटा = df [numCols], FUN = function (x) सी (एमईडी = माध्य (एक्स), एसडी = एसडी (एक्स))) मैंने डाटा फ़्रेम में कुछ स्तंभों की माध्य और एसडी की गणना करने के लिए डेटा फ़्रेम डीएफ पर समग्र फ़ंक्शन का उपयोग किया है । मैं आगे विश्लेषण के लिए माध्य और एसडी स्तंभों का उपयोग करना चाहता हूं। जब मैं कोशिश करता हूँ: temp $ med मुझे परिणाम नल के रूप में मिलता है। क्या इसके आसपास कोई कार्य है? मैं और विश्लेषण के लिए मध्य और एसडी स्तंभों का उपयोग करना चाहता हूं मुझे नहीं लगता कि आप $ पर कुल क्योंकि आपके उदाहरण में, परिणाम समूहबद्ध कॉलम द्वारा वितरित किया जाता है। चूंकि आप दो फ़ंक्शन लागू कर रहे हैं, इसलिए आपको कॉलम इंडेक्स का उपयोग करना होगा जैसे आप एक मैट्रिक्स होगा। यहां एक उदाहरण है & gt; Myfuns & lt; - फ़ंक्शन (x) c (MED = औसत (x), SD = sd (x)) & gt; (एजी और एलटी; - कुल (। ~ Cyl, डेटा = एमटीसीआर [1: 3], FUN = मायफंस)) # कैल एमजीजी। एमईडी एमजीजीएसडी डिस्प। एमईडी डिस्प। एसडी # 1 4 26.000000 4.509828 108.00000 26.8...

ruby - Automating browser actions on a headless server -

I'm looking for a Ruby solution to automate web records on a headless server (no xwindows) What do I need to do is export a file from the Daily WebAP and import it into another web app in another server. I have seen Selenium, Capoebara, Nokogiri, but I am confused with their differences / equality. Selenium needs to run a browser, which I can not do because there is no X to run in it, Noriking can use WebKit on a headless server, but it can not detect that it actually downloads / uploads files Why can it Any pointer will be appreciated. I will suggest. I'm not sure that you need something like this for this type of work like selenium . You should be able to complete this gem that is looking for you.

html - How to hide <h1> Title? -

I believe this is the code, I want to hide on the front page, whether I hide a CSS Can I use code? I can only remove the "title" from the page, and it gets rid of it, but then the link has gone from the menu menu. & lt; H1 class = 'Page-Title Entry-Title' & gt; Forum & lt; / H1> Use display of CSS: & lt; H1 style = 'display: none;' Class = 'page-title entry-title' & gt; Forum & lt; / H1> A class hidden with display: none; Creating would be good as a property (you need to edit css instead of HTML). By the way, even though we are happy to welcome all new people, there are some rules about the questions of stack sites. One of these is that will have to demonstrate the least effort in trying to solve their problems on their own. A simple Google search could have solved this for you. Edit: If you can not edit HTML / CSS code, then inject JavaScript. var all = document.getElementsByTagName (...

in iOS8: UIPopoverController presentPopoverFromRect not work for keyWindow any more -

IOS8 में, [UIPopoverController presentPopoverFromRect] [UIApplication shared application] .keyWindow के लिए काम नहीं करता है मैं सबसे अच्छा समाधान के साथ आया हूँ सशर्त इसे संभालना है अगर आईओएस 7 पर, कुंजी विंडो पर यूआईपीओपॉयर नियंत्रक पेश करने के लिए हमारे द्वारा काम कर रहे कोड का उपयोग करें। अगर आईओएस 8 पर, निम्नलिखित का उपयोग करें: viewController.modalPresentationStyle = UIModalPresentationPopover; UIPopoverPresentationController * presentationController = viewController.popoverPresentationController; [प्रस्तुति नियंत्रक सेट Delegate: self]; PresentationController.permittedArrowDirections = 0; PresentationController.sourceView = [[UIApplication साझा किया गया अनुप्रयोग] कुंजीविंडो]; PresentationController.sourceRect = [[UIApplication साझा किया गया अनुप्रयोग] कुंजीविंडो]। बाउंस; [ViewController सेटप्रतिदित कंटेंटसिज़ः CGSizeMake (320, 480)]; [पेरेंटकंट्रोलर उपस्थित ViewController: दृश्य नियंत्रक एनिमेटेड: हाँ पूरा: शून्य]; यह समान रूप से कार्य करता है: self.popoverCo...