// File: orbitcowboy[P]gnuplot-cpp/./gnuplot_i.hpp
// Function: Gnuplot& Gnuplot::plot_xy<std::vector<double, std::allocator<double>>, std::vector<double, std::allocator<double>>>(std::vector<double, std::allocator<double>> const&, std::vector<double, std::allocator<double>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Gnuplot& Gnuplot::plot_xy(const X& x, const Y& y, const std::string &title)
{
    if (x.empty() || y.empty())
    {
        throw GnuplotException("std::vectors too small");
    }

    if (x.size() != y.size())
    {
        throw GnuplotException("Length of the std::vectors differs");
    }
    std::ofstream tmp;
    const std::string name = create_tmpfile(tmp);
    if (name.empty())
    {
        throw GnuplotException("Unable to create tmp-file.");
    }
    // write the data to file
    for (std::size_t i = 0; i < x.size(); ++i)
    {
        tmp << x[i] << " " << y[i] << std::endl;
    }
    // Cleanup
    tmp.flush();
    tmp.close();
    // Plot
    plotfile_xy(name, 1, 2, title);

    return *this;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x340, %rsp            # imm = 0x340
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x2d8(%rbp)
movq -0x10(%rbp), %rdi
callq 0xe5a0
testb $0x1, %al
jne 0xc7f5
movq -0x18(%rbp), %rdi
callq 0xe5a0
testb $0x1, %al
jne 0xc7f5
jmp 0xc8ad
movb $0x1, -0x55(%rbp)
movl $0x10, %edi
callq 0x3170
movq %rax, -0x2e8(%rbp)
leaq -0x41(%rbp), %rdi
movq %rdi, -0x2e0(%rbp)
callq 0x3510
movq -0x2e0(%rbp), %rdx
leaq 0x417e(%rip), %rsi      # 0x109a6
leaq -0x40(%rbp), %rdi
callq 0xbb50
jmp 0xc833
movq -0x2e8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0xbcd0
jmp 0xc845
movq -0x2e8(%rbp), %rdi
movb $0x0, -0x55(%rbp)
leaq 0x94f1(%rip), %rsi      # 0x15d48
leaq -0xb4e(%rip), %rdx      # 0xbd10
callq 0x34d0
jmp 0xcc1d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0xc88b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x35c8
leaq -0x41(%rbp), %rdi
callq 0x32f0
testb $0x1, -0x55(%rbp)
jne 0xc89c
jmp 0xc8a8
movq -0x2e8(%rbp), %rdi
callq 0x3210
jmp 0xcc14
movq -0x10(%rbp), %rdi
callq 0xe5e0
movq %rax, -0x2f0(%rbp)
movq -0x18(%rbp), %rdi
callq 0xe5e0
movq %rax, %rcx
movq -0x2f0(%rbp), %rax
cmpq %rcx, %rax
je 0xc991
movb $0x1, -0x7a(%rbp)
movl $0x10, %edi
callq 0x3170
movq %rax, -0x300(%rbp)
leaq -0x79(%rbp), %rdi
movq %rdi, -0x2f8(%rbp)
callq 0x3510
movq -0x2f8(%rbp), %rdx
leaq 0x40b1(%rip), %rsi      # 0x109bd
leaq -0x78(%rbp), %rdi
callq 0xbb50
jmp 0xc917
movq -0x300(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0xbcd0
jmp 0xc929
movq -0x300(%rbp), %rdi
movb $0x0, -0x7a(%rbp)
leaq 0x940d(%rip), %rsi      # 0x15d48
leaq -0xc32(%rip), %rdx      # 0xbd10
callq 0x34d0
jmp 0xcc1d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0xc96f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x35c8
leaq -0x79(%rbp), %rdi
callq 0x32f0
testb $0x1, -0x7a(%rbp)
jne 0xc980
jmp 0xc98c
movq -0x300(%rbp), %rdi
callq 0x3210
jmp 0xcc14
leaq -0x280(%rbp), %rdi
movq %rdi, -0x308(%rbp)
callq 0x34c0
movq -0x2d8(%rbp), %rsi
movq -0x308(%rbp), %rdx
leaq -0x2a0(%rbp), %rdi
callq 0x6b90
jmp 0xc9c0
leaq -0x2a0(%rbp), %rdi
callq 0x3490
testb $0x1, %al
jne 0xc9d5
jmp 0xcab6
movb $0x1, -0x2c2(%rbp)
movl $0x10, %edi
callq 0x3170
movq %rax, -0x318(%rbp)
leaq -0x2c1(%rbp), %rdi
movq %rdi, -0x310(%rbp)
callq 0x3510
movq -0x310(%rbp), %rdx
leaq 0x3fd2(%rip), %rsi      # 0x109e0
leaq -0x2c0(%rbp), %rdi
callq 0xbb50
jmp 0xca1c
movq -0x318(%rbp), %rdi
leaq -0x2c0(%rbp), %rsi
callq 0xbcd0
jmp 0xca31
movq -0x318(%rbp), %rdi
movb $0x0, -0x2c2(%rbp)
leaq 0x9302(%rip), %rsi      # 0x15d48
leaq -0xd3d(%rip), %rdx      # 0xbd10
callq 0x34d0
jmp 0xcc1d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0xcc08
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0xca8e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x2c0(%rbp), %rdi
callq 0x35c8
leaq -0x2c1(%rbp), %rdi
callq 0x32f0
testb $0x1, -0x2c2(%rbp)
jne 0xcaa5
jmp 0xcab1
movq -0x318(%rbp), %rdi
callq 0x3210
jmp 0xcbfc
movq $0x0, -0x2d0(%rbp)
movq -0x2d0(%rbp), %rax
movq %rax, -0x320(%rbp)
movq -0x10(%rbp), %rdi
callq 0xe5e0
movq %rax, %rcx
movq -0x320(%rbp), %rax
cmpq %rcx, %rax
jae 0xcb95
movq -0x10(%rbp), %rdi
movq -0x2d0(%rbp), %rsi
callq 0xe600
movsd (%rax), %xmm0
leaq -0x280(%rbp), %rdi
callq 0x3560
movq %rax, -0x328(%rbp)
jmp 0xcb14
movq -0x328(%rbp), %rdi
leaq 0x3747(%rip), %rsi      # 0x10269
callq 0x3280
movq %rax, -0x330(%rbp)
jmp 0xcb30
movq -0x18(%rbp), %rdi
movq -0x2d0(%rbp), %rsi
callq 0xe600
movq -0x330(%rbp), %rdi
movsd (%rax), %xmm0
callq 0x3560
movq %rax, -0x338(%rbp)
jmp 0xcb59
movq -0x338(%rbp), %rdi
movq 0x9439(%rip), %rsi      # 0x15fa0
callq 0x32d0
jmp 0xcb6e
jmp 0xcb70
movq -0x2d0(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x2d0(%rbp)
jmp 0xcac1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0xcbfc
leaq -0x280(%rbp), %rdi
callq 0x31d0
jmp 0xcba3
leaq -0x280(%rbp), %rdi
callq 0x3410
jmp 0xcbb1
movq -0x2d8(%rbp), %rdi
movq -0x20(%rbp), %r8
leaq -0x2a0(%rbp), %rsi
movl $0x1, %edx
movl $0x2, %ecx
callq 0x5f60
jmp 0xcbd4
leaq -0x2a0(%rbp), %rdi
callq 0x35c8
leaq -0x280(%rbp), %rdi
callq 0x3430
movq -0x2d8(%rbp), %rax
addq $0x340, %rsp            # imm = 0x340
popq %rbp
retq
leaq -0x2a0(%rbp), %rdi
callq 0x35c8
leaq -0x280(%rbp), %rdi
callq 0x3430
movq -0x50(%rbp), %rdi
callq 0x3500
nopl (%rax)