Questions tagged [manipulate]

Do not use. This tag has been used for anything and everything. Disambiguation required.

33 questions
3
votes
0 answers

Julia: using @manipulate creates plot but doesn't update after saving notebook and reopening

I am totally stumped by the following: I create a plot in Julia 1.6.3 with the current versions of Interact.jl and WebIO.jl and use the @manipulate macro to create a plot with an options box and a slider. The plots works and can be manipulated…
2
votes
1 answer

How to manipulate pixel values via image expression?

Recently I am writing a script to manipulate the pixel values in an image. The idea is to set the pixels that fall into the given range to a specific value. Instead of using the command "for" which loops from pixel to pixel, an image expression was…
2
votes
2 answers

create a new vector with special conditions and cumsum_function from another vector -matlab

consider a vector like 'e'. i wanted to do below conditions and create a new 'e' vector. conditions: If e(i)<5,then it must be replaced with e(i)+e(i+1) that it must be greater than 5,if don't, e(i) must be replaced with e(i)+e(i+1)+e(i+2) and so…
amir1122
  • 57
  • 5
2
votes
1 answer

Manipulate slider does not appear in 'plot'

Simple question: What prevents manipulate sliders from appearing in the 'plot' section of R Studio? Let's take a very simple example, run in an Rmarkdown chunk: manipulate( plot(1:x), x = slider(1, 100) ) In rmarkdown, this doesn't show the…
Union find
  • 7,759
  • 13
  • 60
  • 111
1
vote
1 answer

python using class param as self

I'm new to python and I wonder, if is possible to make a single method to manipulate with all class attributes, like: class Test: def __init__(self, dict1 = {"test": 0}, dict2 = {"another_test": 0}): self.dict1= dict1 self.dict2…
1
vote
1 answer

Ansible define new variable with value from other

I need some help with Ansible variables. --- - name: create remote ansible account hosts: all gather_facts: false remote_user: admin vars: ansible_ssh_pass: mypassword ansible_become_pass: mypassword publickey: "{{ inputvalue…
1
vote
1 answer

manipulate() slider function with ggplot2 not working

The below snippet is not working when I use the manipulate() function. Only the chart appears for initial value of the slider but the control does not appear. I use a plot() function, the control appears. library(UsingR) data(galton) myHist <-…
1
vote
1 answer

Slider doesn't show up as I use manipulate function

I am using R 4.0 in Windows 10 and the manipulate sliders don't appear to be working with any of the examples that I take from the videos or textbook. I did not meet any errors while running the code below, everything works perfectly except for not…
yliu3089
  • 11
  • 1
1
vote
1 answer

From 15 object variables to final target variable (0 or 1)

Can i go from 15 object variables to one final binary target variable? Those 15 variables has ~10.000 different codes, my dataset is about 21.000.000 records. What im trying to do is at first replace the codes i want with 1 and the other with 0,…
Nick.P.
  • 15
  • 6
1
vote
2 answers

Manipulate strings on MySQL database

I have these strings : X322-1-381128 and X322-1-383128 I need manipulate these strings for get output : X322138128 and X322138328 I have tried withous success this solution, because the output is only : X322138128 Please can you help me ? mysql>…
user3368883
0
votes
1 answer

how to manipulate right click context menu using windows API and c#

i have work on an app that manipulate some application context menue to extend its functions, i have checked all the common posts here on stackOverFlow on how to manipulate the menu context using Windows api in C# using functions like GetMenu(...),…
0
votes
1 answer

Module caution: In 'Show' occurs where it is probably not going to be evaluated before going out of scope

I have tried to make my own Manipulate module that draws numerical trajectories in 2D space depending on 1 parameter. The problem is that I have this caution in title for every variable in Show. I understand that it is related to some dynamic…
0
votes
2 answers

How can I manipulate key name in Object with Javascript

I want to do change the name of a key in an Object. But when I want to do this with an if condition, I get this (Assignment to function parameter 'key') error. How can i manipulate a key name ? My Code: const personData =…
0
votes
0 answers

Manipulate Windows layout, size and position from forreign code

I would like to change the layout, size and position of a window programaticaly. Is that possible? The problem: I use Chrome on a dual screen system in combination with chrome remote desktop (homeoffice). Chrome can't do a fullscreen mode on a dual…
0
votes
1 answer

AppleScript to edit an XML file?

I have an Apple Music Library output file that looks like this: 6871 Track ID6871 Name12 Wake Up Call
timbot
  • 5
  • 5
1
2 3